PHP » GoLang |
login |
register |
about
|
GoLang DateTime::getTimestamp
request it (431)
GoLang replacement for PHP's DateTime::getTimestamp
[edit | history]
DateTime::getTimestampDateTimeImmutable::getTimestampDateTimeInterface::getTimestampdate_timestamp_get(PHP 5 >= 5.3.0 < 5.5.0) DateTime::getTimestamp -- DateTimeImmutable::getTimestamp -- DateTimeInterface::getTimestamp -- date_timestamp_get — Gets the Unix timestamp DescriptionObject oriented style
public int DateTime::getTimestamp
( void
)
public int DateTimeImmutable::getTimestamp
( void
)
public int DateTimeInterface::getTimestamp
( void
)
Procedural style Gets the Unix timestamp. ParametersThis function has no parameters. Return ValuesReturns the Unix timestamp representing the date. ExamplesExample #1 DateTime::getTimestamp() example Object oriented style
<?php Procedural style
<?php The above examples will output something similar to: 1272509157 NotesUsing U as the parameter to DateTime::format() is an alternative when using PHP 5.2. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|