Back to articles

Tag archive

#timestamp

M
Mar 29, 2018

MYSQL Query With Timestamp Long Values

In unusual circumstances you be faced with a situation where you have long value representation of date-time at hand but you need to query over a timestamp field in MYSQL. Here is a small utility function that converts the long value to a MYSQL TIMESTAMP comparable format. The output from it can easily be passed to the TIMESTAMP function.

Mar 29, 20181 min read9 reactions0 comments