What time is it?

Name that offset

This page shows various time values and conversions to other units. I find this useful when programming in PHP and other languages.

Often, I want to run a SQL query to update a time value in a Drupal db table, and I need to know the delta to add to an existing unix timestamp value to push a value out by 24 hours, 90 days, etc. and would rather not whip out a calculator or do the math on paper...



UnitSecondsMilliseconds
15 Seconds1515000
30 Seconds3030000
45 Seconds4545000
60 Seconds6060000
One Hour36003600000
24 Hours8640086400000
7 Days604800604800000
One Week604800604800000
14 Days12096001209600000
Two Weeks12096001209600000
30 Days25920002592000000
45 Days38880003888000000
60 Days51840005184000000
90 Days77760007776000000
365 Days3153600031536000000
Page generated on:
GMT Time: Sun, 07/06/2008 - 7:02am
Unix Time: 1215327765 seconds since January 1 1970 00:00:00 GMT
Local server time: Sat, 07/05/2008 - 11:02pm
Posted by: Mike on Thu, 12/21/2006 at 2:15pm

Post new comment

This helps us decide if you are a human, and not just some visiting bot.
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <h3> <h4> <br> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Lines and paragraphs break automatically.
More information about formatting options