Class DateTime
DateTime.
- DateTime implements DateTimeInterface
- Nette\Utils\DateTime implements JsonSerializable uses Nette\SmartObject
public static
|
|
public static
|
|
public static
|
#
createFromFormat( string $format, string $time, string|
Returns new DateTime object formatted according to the specified format. |
public
string
|
|
public
string
|
|
public
|
|
public
|
|
public
integer|string
|
__construct(),
__set_state(),
__wakeup(),
add(),
diff(),
format(),
getLastErrors(),
getOffset(),
getTimezone(),
modify(),
setDate(),
setISODate(),
setTime(),
setTimezone(),
sub()
|
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset(),
extensionMethod(),
getReflection()
|
integer |
MINUTE
minute in seconds |
# 60 |
integer |
HOUR
hour in seconds |
# 60*self::MINUTE |
integer |
DAY
day in seconds |
# 24*self::HOUR |
integer |
WEEK
week in seconds |
# 7*self::DAY |
integer |
MONTH
average month in seconds |
# 2629800 |
integer |
YEAR
average year in seconds |
# 31557600 |
ATOM,
COOKIE,
ISO8601,
RFC1036,
RFC1123,
RFC2822,
RFC3339,
RFC822,
RFC850,
RSS,
W3C
|