Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AbstractCollection
  • AddressFormatProvider
  • CurrencyCode
  • CustomerStatusProvider
  • EditableCollection
  • EditableKeyValueCollection
  • EmptyCurrencyCode
  • EmptyDateTime
  • EmptyLanguageCode
  • IdCollection
  • KeyValueCollection
  • LanguageCode
  • StringCollection
  • YetAnotherLanguageProvider

Class EmptyDateTime

EmptyDateTime

The purpose of this class is to represent a DateTime with support of an empty date 0000-00-00 00:00:00

DateTime implements DateTimeInterface
Extended by EmptyDateTime
Package: Shared
Category: System
Extends: DateTime
Located at Shared/EmptyDateTime.inc.php

Methods summary

public
# __construct( string $time = '0000-01-01 00:00:00', DateTimeZone $timeZone = null )

Parameters

$time

A date/time string. NULL will be represented as 0000-00-00 00:00:00 instead of the current time like in DateTime.

$timeZone

A DateTimeZone object representing the timezone of $time. If $timezone is omitted, the current timezone will be used.

Overrides

DateTime::__construct
public string
# format( string $format )

Formats a date by a given pattern and ensures, that dates that represent empty data are formatted to '0000-00-00 00:00:00'

Formats a date by a given pattern and ensures, that dates that represent empty data are formatted to '0000-00-00 00:00:00'

Parameters

$format

Returns

string

Overrides

DateTime::format

Methods inherited from DateTime

__set_state(), __wakeup(), add(), createFromFormat(), diff(), getLastErrors(), getOffset(), getTimestamp(), getTimezone(), modify(), setDate(), setISODate(), setTime(), setTimestamp(), setTimezone(), sub()

Constants summary

Constants inherited from DateTime

ATOM, COOKIE, ISO8601, RFC1036, RFC1123, RFC2822, RFC3339, RFC822, RFC850, RSS, W3C

Properties summary

protected boolean $isNullDate
# false
API documentation generated by ApiGen