Overview

Namespaces

  • ApiBundle
    • DataFixtures
      • Faker
        • Provider
    • DependencyInjection
    • Doctrine
      • DBAL
        • Type
      • ORM
        • Filter
          • User
    • Entity
    • EventListener
      • Doctrine
    • Manager
    • Utils
  • FrontBundle
    • Bundle
      • UserBundle
    • Client
      • Exception
    • Controller
    • DependencyInjection
    • Form
      • DataTransformer
      • Type
    • Menu
    • Security
      • Http
        • Authentication
    • Services
      • Http
    • Twig
    • Utils

Classes

  • DateTimeProvider
  • JobProvider
  • MandateProvider
  • StudentConventionProvider
  • UserProvider
  • Overview
  • Namespace
  • Class

Class DateTimeProvider

Extends \Faker\Provider\DateTime. As all method are static does not literally extend the class to avoid useless overhead.

Namespace: ApiBundle\DataFixtures\Faker\Provider
Author: Théo FIDRY theo.fidry@gmail.com
Located at ApiBundle/DataFixtures/Faker/Provider/DateTimeProvider.php
Methods summary
public static DateTime
# dateTimeFromFormat( string $format, string $time )

Parses a string into a new DateTime object according to the specified format.

Parses a string into a new DateTime object according to the specified format.

Parameters

$format
Format accepted by date().
$time
String representing the time.

Returns

DateTime

Link

http://php.net/manual/en/datetime.createfromformat.php
API documentation generated by ApiGen