Jump to content

mysql function like time() ?


akshay

Recommended Posts

Hi.

 

Is there any function in mySQL that returns value in seconds elapsed since January 1 1970 00:00:00 GMT, just like time() function in PHP?

 

I've to select * from database where expiry (in seconds) - <...> is less than so many seconds...

 

[note: where <...> is used to represent the function like time() (php) ]

 

Please help.

Thanks

Link to comment
https://forums.phpfreaks.com/topic/208165-mysql-function-like-time/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.