Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find epoch for date and time

Status
Not open for further replies.

solex

Programmer
Feb 28, 2003
91
0
0
GB
Hello,

I couldnt find an answer to this, so sorry if this has been covered before.

I want to find the epoch for i.e. 3rd of january 2007. Is there a premade function to do this, i could only find how to get the current epoch.

Thanx in advance

Charles
 
sorry, to clarify that was also ment to specify a time with the date and also this can be past or future.

Charles
 
Is strtotime() what you're looking for?

If so, please pay attention to the Notes and Warnings on the page. Depending on your platform and PHP version, PHP's date and time functions can give unexpected results.



Want the best answers? Ask the best questions! TANSTAAFL!
 
thats great, is there a reverse version of this function, epoch into date?

Thank you :)
 
re read the date function just fater i posed and noticed the time stamp section, doh!

Charles
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top