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

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -