MySQL: how to get an actual TimeStamp? literally the amount of seconds since 1970-01-01 UTC -


a mysql timestamp field written , read 'yyyy-mm-dd hh:mm:ss', how can actual amount of seconds since 1970-01-01 utc?

use unix_timestamp.

if called no argument, returns unix timestamp (seconds since '1970-01-01 00:00:00' utc) unsigned integer. if unix_timestamp() called date argument, returns value of argument seconds since '1970-01-01 00:00:00' utc. date may date string, datetime string, timestamp, or number in format yymmdd or yyyymmdd.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -