Solved

What does < unix_timestamp()

Posted on 2010-11-10
2
478 Views
Last Modified: 2012-05-10
Hi

Can anyone explain to me what the statement < unix_timestamp() means?
0
Comment
Question by:Dan560
2 Comments
 
LVL 4

Assisted Solution

by:eleibowitz
eleibowitz earned 250 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 250 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now