Hi,
The payment processing company I pass data to requires a 13 digit TimeStamp (milliseconds since Jan 1 1970 00:00:00 GMT),
however it seems that time() only returns 10 digits.
Any ideas what I should be using ?
Thanks
Hi,
The payment processing company I pass data to requires a 13 digit TimeStamp (milliseconds since Jan 1 1970 00:00:00 GMT),
however it seems that time() only returns 10 digits.
Any ideas what I should be using ?
Thanks
[man]microtime/man, perhaps.
Well you could use MYSQL but that... offers another delima....
Values specified as numbers should be 6, 8, 12, or 14 digits long. If a number is 8 or 14 digits long, it is assumed to be in YYYYMMDD or YYYYMMDDHHMMSS format and that the year is given by the first 4 digits. If the number is 6 or 12 digits long, it is assumed to be in YYMMDD or YYMMDDHHMMSS format and that the year is given by the first 2 digits. Numbers that are not one of these lengths are interpreted as though padded with leading zeros to the closest length.
Thanks.
I have come up with a very cheap and nasty solution... simply attach 000 to the end. It seems to work.