PHP » GoLang |
login |
register |
about
|
GoLang px_timestamp2string
request it (417)
GoLang replacement for PHP's px_timestamp2string
[edit | history]
px_timestamp2string(PECL paradox >= 1.4.0) px_timestamp2string — Converts the timestamp into a string Description
string px_timestamp2string
( resource
$pxdoc
, float $value
, string $format
)Turns a timestamp as it stored in the paradox file into human readable format. Paradox timestamps are the number of miliseconds since 0001-01-02. This function is just for convenience. It can be easily replaced by some math and the calendar functions as demonstrated in the following example. Parameters
Return Values
Returns Examples
Example #1 Turn a paradox timestamp into a human readable form
<?php The above example will output: 7/15/1917 7/15/1917 01:00:00 The Julian day count as passed to jdtogregorian() has a different base of 1.1.4714 b.c. and must therefore be calculated by adding 1721425 to the day count used in the paradox file. Turning the day count into a timestamp is easily done by multiplying with 86400000.0 to obtain miliseconds. See Also
|
more
Recently updated
more
Most requested
more
Last requests
|