$asctime: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m fixed commenting syntax |
||
Line 9: | Line 9: | ||
returns Wed Sep 21 20:30:26 2005 (for example). You'll get same result with $asctime(ddd mmm dd H:nn:ss yyyy). Without given ''N'', $asctime uses $ctime as default. | returns Wed Sep 21 20:30:26 2005 (for example). You'll get same result with $asctime(ddd mmm dd H:nn:ss yyyy). Without given ''N'', $asctime uses $ctime as default. | ||
$asctime(793947600) returns the default text format for this time value | $asctime(793947600) ;returns the default text format for this time value | ||
$asctime(hh:nn:ss) returns the current time in this format | $asctime(hh:nn:ss) ;returns the current time in this format | ||
$asctime(793947600, dd/mm/yy) returns the date for this time value | $asctime(793947600, dd/mm/yy) ;returns the date for this time value | ||
== See Also == | == See Also == |
Latest revision as of 13:43, 10 November 2005
Returns the time and date in text format associated with the $ctime time value.
$asctime(N, format)
where N is the timestamp in unixtime, see $ctime for more information. See Time and Date Identifiers for full list of possible formats. Both N and format are optional, but only one at the time.
$asctime($ctime)
returns Wed Sep 21 20:30:26 2005 (for example). You'll get same result with $asctime(ddd mmm dd H:nn:ss yyyy). Without given N, $asctime uses $ctime as default.
$asctime(793947600) ;returns the default text format for this time value $asctime(hh:nn:ss) ;returns the current time in this format $asctime(793947600, dd/mm/yy) ;returns the date for this time value