Manuál PHP | ||
---|---|---|
PÅ™edcházejÃcà | Dalšà |
px_timestamp2string
Popis
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 milliseconds since 1.1.0000. This function is just for convenience. It can be easily replaced by some math and the calendar functions as demonstrated in the following example.
Seznam parametrů
pxdoc
Resource identifier of the paradox database.
value
Value as stored in paradox database field of type PX_FIELD_TIME, or PX_FIELD_TIMESTAMP.
format
String format similar to the format used by date(). The placeholders support by this function is a subset of those supported by date() (Y, y, m, n, d, j, H, h, G, g, i, s, A, a, L).
PÅ™Ãklady
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 milli seconds.
PÅ™edcházejÃcà | Domů | Dalšà |
px_set_value | Nahoru |