?
Solved

What does < unix_timestamp()

Posted on 2010-11-10
2
Medium Priority
?
488 Views
Last Modified: 2012-05-10
Hi

Can anyone explain to me what the statement < unix_timestamp() means?
0
Comment
Question by:Dan560
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Assisted Solution

by:eleibowitz
eleibowitz earned 1000 total points
ID: 34105698
It returns the number of seconds since January 1, 1970 at 0:00 (midnight at the end of Dec 31, 1969).
0
 
LVL 25

Accepted Solution

by:
jrb1 earned 1000 total points
ID: 34105724
You would only want to use this to compare two values that are in a unix timestamp format.  Per the docs:

a Unix timestamp is the number seconds since '1970-01-01 00:00:00' UTC

If you don't pass a date/datetime to the function, it uses the current timestamp.  So,

< unix_timestamp()

mean, less than the current timestamp as represented by the Unix timestamp format, the number of seconds since 1/1/1970.
0

Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question