You are using a browser which is not compatible with CSS (for more information, see Tara's tutorial). Because of this, it is possible that our website may not appear correctly in your browser. We apologise for the inconvenience, and recommend you upgrade your browser to one which is compatible with CSS. For more information, please visit our Browser Upgrade page.

4WebHelp

Online Tools: Unix Timestamp Converter

Convert timestamps into dates:
Timestamp: (example: 1010342461) (in GMT)
Timezone: (timezone which the result will be given in)
 
Convert dates into timestamps:
Day: (01-31)
Month: (01-12)
Year:
Hour: (00-23)
Minute: (00-59)
Second: (00-59)
Timezone:
 
Comments
Name: ChrisEmail none
Thanks! Use this tool every day!
Name: MichaelEmail none
Hi there,

thank you for that. I found it with google and i really enjoyed it.

Best regards

Michael
Name: Jamie SaundersEmail jamie at betterdevelopment dot co dot uk
I've been using this tool whilst developing for the last thee years - thank you!
Name: MarcoEmail none
i like this tool Smile
Name: evatcEmail none
Thanks a bunch. I was in a hurry, needed the info, and this tool was great. Thanks!
Name: D~Email none
Nice tool!

Now If I can only figure out the time difference between GMT and the US time after we switched to earlier summer time ! Smile

Regards,
scriptster
http://www.1-script.com
Name: mickeyEmail none
the end of the world?

9999999999 translates to Sunday, September 7th 2014, 4:50:07 (GMT)

Great tool Smile
Name: SteveEmail none
Been such a help. Cheers.

btw
1234567890 translates to Friday, February 13th 2009, 23:31:30 (GMT)

got to be the end of the world hasn't it?
Name: GoranEmail none
Very good tool, thanks!
Name: BaniEmail none
Thx great tool
Name: DaskyEmail none
Well done, great tool guys !
Name: shivaEmail none
Nice tool , thanks  it saving lot of time Smile
Name: kaushalEmail kaushal dot parik at gmail dot com
thanx... comes handy today... bookmarked for future reference..

in Case, if anybody wants code / formula in C#..

DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0);
           TimeSpan diff = DateTime.Now - origin;
           string strTime = Convert.ToString(Math.Floor(diff.TotalSeconds));
Name: prashatniEmail none
Came in handy 2day Smile
Name: RobertEmail fm_rob at hotmail dot com
NICE!
Name: JohnEmail none
Field length is insufficient. Can't convert
1193152432325 Sad
Name: BazEmail none
Eh.. I used this once and thought it was great. There are so many UNIX time convertors which give random results. Anyway, I captured a http trace and IMMEDIATELY entered the timestamp here and it gave me a time corresponding to the capture time... result!.... then I did a refresh a couple of minutes later with the same timestamp and it gave me the current time. Maybe I'm doing something wrong but from what I can see it's only giving me the time that it's getting from the CPU clock. Am I doing something wrong?
Name: Sc00bzEmail none
You missed a timezone (GMT+05:45) Kathmandu "GMT + 5.75"
Also you might want to add daylight saving.
Name: Wez EdwardsEmail none
Cracking little tool, been using it for ages.
Name: bartEmail none
this tool is awsome!!! i've been looking for 2 months!
Name: chEmail none
Nice!!!!I like it!!!Save my b...
Name: tjEmail none
thanks
Name: StarCraftEmail none
Nice tool, it come in handy thanks.
http://www.sc2talk.com
Name: AjaxEmail none
2147483647 is the maximum size currently handled by unix time stamp (a signed 32-bit integer is used.)

Try it out. It seems that GMT +<anything> wraps to 1901. I wonder if unix systems which still use the 32-bit signed int have this problem when displaying time for this value?
http://www.digajax.com
Name: bruin03Email none
Great tool! It's perfect for quickly checking my work. Smile
Name: LukaroEmail none
This tool helped me about the 1000th time right now Wink
The Timezone-Dropdown could be more comfortable with cookies, I guess, but anyway, it's quite nice as it is atm.
http://www.csto2.de
Name: KKEmail none
Excellent tool thanks! It even handles hex Smile
Name: BradEmail none
Nice work... clean, simple, functional - very helpful.
Name: Sal13Email none
Great tool! Thanks for the effort you've put into this.
Name: Sreejesh NairEmail sreejesh dot nair at msn dot com
Really helpful nice piece of code.
Name: VolkanEmail webmaster at vknyvz dot com
where is the source code?
Name: prashantiEmail none
Nice tool
Came in handy today Smile
Name: Roger BurgessEmail none
I don't suppose you can have it remember the timezone like it does for the rest of the options after you submit to create a timestamp?
Name: konstanceEmail none
I've been using this tool for several years, and I just want to say - it is absolutely incredible!  Makes my life so much easier!!!
Name: mishEmail none
Very nice tool indeed!Smile
Name: tortugamarinaEmail none
Great. The best to you, your children & your grandchildren for 1000 generations.
Name: pbEmail none
Great, just what I needed =)
Name: BarnDeeEmail none
Great tool! Came in handy today. Thanks.
Name: sweEmail none
1170801016570 is the timestamp i have..i need to know the format in which it is present...i dnt know the format in which it is getting generated.Can u help me out??
Name: saavyoneEmail none
1234567890 is Friday the 13th...

weird...

thanks for this fun time-waster
Name: pabloEmail mozambia at wp dot pl


Hi

Where is code?????????????
Name: CollinEmail none
2147483647 is the maximum size currently handled by unix time stamp (a signed 32-bit integer is used.)

Try it out. It seems that GMT +<anything> wraps to 1901. I wonder if unix systems which still use the 32-bit signed int have this problem when displaying time for this value?
Name: BerkayEmail none
You have to love the web! Thanks for the tool!
Name: janne SchraEmail none
Thank you... I use this tool a lot to update the website of my band: www.roomeleven.nl

Name: DanielEmail use contact form
Adrian, "Wednesday, April 18th 2007, 23:00:00 (GMT +1)" is the same as "Thursday, April 19th 2007, 0:00:00 (GMT +2)", and both correspond to the timestamp you posted, therefore the converter works as advertised. Since taking summer/winter time into account is so complicated, it's up to you to select a different time zone if you wish - ie to choose GMT +2 if the result displayed in GMT +1 is during the summer.
Name: AdrianEmail none
The link before is just useful if you need to work with Middle-Europe-Times (GMT+1) Smile
Name: AdrianEmail none
****... makes no difference between summer/wintertime

Example?

Serverlocation -> Switzerland
We have GMT+1

If we give now the timestamp: 1176933600
in this tool, what we get?

Exactly: Wednesday, April 18th 2007, 23:00:00 (GMT +1)

...hmmmmmmmmmmmmmmmmmm, I tell you a secret... every Apache Server will tell you that 1176933600 is actually the 19th April 2007 at 00:00:00

This script forgets that Middle Europe has in the summertime 2 hours difference to GMT.

Be careful with it, better use the timestamp converter on this site: http://www.01-scripts.de/timestamp.php ...or check the dates yourself in php to be 100% sure.
Name: ZakEmail none
Exactly what I wanted, thanks!

++Bookmark
Name: PhilEmail none
The "8-byte timestamp" is a Windows stamp found in index.dat files in the FILETIME format, which is 100 nanosecond increments from 00:00:00 on Jan. 1, 1601.
Name: Erik AndersonEmail none
Well, what exactly is an "8-byte timestamp"?  It's not a "struct timeval" as the last half of the number doesn't represent a value under 1000000.  It's not an MSAD timestamp as I ran the calculations through (with both byte orders) and got a huge number.  It's not a double-precision floating point number as it would be badly negative.  And it's not that weird coded decimal stuff described in "U.S. Patent 6803866".  So before we can tell you how to translate it into a UNIX timestamp, you have to tell us where the heck you got it.
Name: Conversion QuestionEmail none
If I have a hex value of an 8-byte time stamp, how do I go about converting it to a UNIX Timestamp? For example, what does "A0C4 3953 01DC C501" converts to?
Name: woostarEmail none
Marvelous Tool - Nice one!

W.>
Name: BlankyEmail none
Great tool!!
Name: its meEmail none
thank you. very helpful tool.
Name: AndiEmail none
thank you thank you thank you thank you
Name: Simon JonesEmail none
Been using this for well over a year now. Thanks a lot Smile
Name: Ali FakoorEmail ali_fakoor at yahoo dot com
Thanks, very usefull, adding to bookmarks as well
Name: dalavereEmail none
me too added this to my bookmarks
thanx man
Name: patrickEmail none
very good  i'll use every day
TY
Name: NazaninEmail none
Really good,
useful &
handy.

Many many  thanks
Name: DickyEmail none
Quote:
Beatnik, thanks for the reply. I apologize if I missed your point, but seems like my question remains: how could GMT -8 produces a larger timestamp than GMT +8 for the same date? GMT +8 is supposed to be 16 hours ahead of GMT -8, therefore has larger timestamp...no?
The key to understanding is that the timestamp is the number of seconds since January 1, 1970 irregardless of the timezone.
Looking at a world timzone map and understanding the rotation of Earth and when the sun comes up on each timezone may help you understand.
GMT - 8 means that you have to subtract 8 hours from the time in GMT - 8 to get the actual GMT time.
GMT + 8 means that you have to add 8 hours from the time in GMT + 8 to get the actual GMT time.
GMT - 8 is actually 8 hours ahead of GMT and GMT + 8 is actually 8 hours behind GMT.
GMT - 8 is to the east of GMT, so when it is 1AM in GMT it will be 9AM in GMT -8. 9AM will give a larger timestamp than 1AM.
GMT + 8 is to the west of GMT, so when it is 1AM in GMT it will be 7PM on the previous day in GMT +8, giving a smaller timestamp.
Name: TheBlipEmail none
William,

Let's say we want to convert 5:00PM GMT +8 and 5:00PM GMT -8. When it is 5:00PM at GMT +8, it will be a certain timestamp.. (eg. 26467365) It will take another 16 hours before it becomes 5:00PM in GMT-8. And that is why the timestamp for 5:00PM GMT -8 is larger than 5:00PM GMT +8.

--------Start Quote----------

Beatnik, thanks for the reply. I apologize if I missed your point, but seems like my question remains: how could GMT -8 produces a larger timestamp than GMT +8 for the same date? GMT +8 is supposed to be 16 hours ahead of GMT -8, therefore has larger timestamp...no?

Thanks!

--------End Quote----------
Name: Cecil WardEmail none
Nice tool. Would you add display output in hex too? (Because I'm lazy.)
Name: Yet Another JamesEmail none
This tool appears to be especially useful to Jameses including myself. Thanks, then, from me and on behalf of all the other Jameses who are too lazy to comment. An essential resource for Jameses.
Name: soniaEmail none
Is there only one way to convert todays to unix date? many different ways isin't it? for ex: strtotime("now")
strtotime("10 September 2000")
etc... so having only the unix number will i be able to retrive correct date and number of days?
Name: JamesEmail artfuljames at gmail dot com
Great tool, really easy to create too but can never be arsed.
Name: dharmeshEmail dharmeshtripathi at yahoo dot com

Great tool i too use it everyday for my unix script and SQls ... Thankx whoever created this tool..
Name: Shivam PandeyEmail none
Uber!! been using this tool forever now. Many thanks Smile
Name: AndrewEmail none
I would agree with the user below me, this is a great tool Ive been using in my work, and the one thing that I didn't like about it was resetting the time zone every time.

Other than that, great work and keep it up!
Name: EnderEmail none
Great tool!

A small suggestion for the top form...the time zone selector goes back to the default every time you load the page.  I think it would be better if it stayed on the time zone the user selects...I hope that makes sense.
Name: DanielEmail use contact form
Alex:

Many thanks for informing me of this. There was a small problem with the code which loads the comments, which meant that a single query (which looks up the words which should be censored) was being run for every comment, instead of being run only once. This has now been corrected.
Name: AlexEmail none
This page is ****. 145 MySQL queries? Someone needs to learn SQL.
Name: danWolfEmail none
Great tool! Very useful! Thanks!
Name: VinZzEmail none
I use it everyday ! Smile
Name: AlexEmail none
Extremelly nice tool
Well done
Name: SanguisEmail none
Dude, thanx great program.
Name: vinceEmail none
Ueeful converter thanks a lot.
But was toot diffcult to find ;o)
Name: OlsreyEmail olsrey at street-racerz dot com
I use the everytime im working on a new feature for my game
Name: John A CoveEmail none
I USE THIS TOOL EVERY DAY IN MY PHP AND MYSQL CODING LIFE - GOD SEND, MANY THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Name: MickeyEmail none
A simple but great tool! I visit this site frequently to use it Smile
Name: deSireEmail info at seffaf dot net
Thanks i'm searching such something
Name: BastyEmail none
Perhaps not the "Best thing since sliced bread", but very close to it - small, quick, useful.

Thanks for this tool.

Bye,
Basty
Name: PeterEmail none
love it! i can't tell you how many times i've used this
Name: William KhoeEmail none
Thanks Beatnik.

That makes sense now. Unix timestamp is taken at GMT (UTC), so you gotta convert everything to GMT first, then count the seconds since January 1, 1970.

You are quite clear, just have to read it couple times Smile

Thanks again!
Name: BeatnikEmail none
Sorry if I wasn't clear, W Khoe; I have a habit of not being clear.... :-\

Watch the outputs that are given.
All the clues are there.

I enter Sunday, January 1st 2006, 0:00:00 for both my tests. Note the time is midnight.

Results:
Sunday, January 1st 2006, 0:00:00 (GMT) translates to 1136073600
Sunday, January 1st 2006, 8:00:00 (GMT -Cool translates to 1136102400

Note how, although I had not altered the time from 0:00:00, it changed the time to 8:00:00 on my second test.

This shows why you have a greater number when you go back. All timestamps are GMT:

Midnight in GMT means it is 4pm in (where-ever GMT-8 is). However, when it is midnight (where-ever GMT-8 is), it is actually 8am in GMT.

Thus midnight on the -ve side of GMT will have a greater timestamp with this tool, and those on the +ve side of GMT will have a lesser timestamp.

Or did I just confuse everyone more ? Razz
Name: LukaroEmail none
It really helped me sometimes. So ive decided to leave a message here.
Nice little Tool Smile
Name: RyanEmail gobo at bfnowhere dot com
I don't suppose you can have it remember the timezone like it does for the rest of the options after you submit to create a timestamp
Name: ChuckEmail none
That thing should reject entries exceeding the numeric range of a signed integer.

Currently it silently converts to a signed value and misguides anyone using it.
Name: EddieEmail none
In answer to William Khoe:
Quote:
how could GMT -8 produce a larger timestamp than GMT +8 for the same date? GMT +8 is supposed to be 16 hours ahead of GMT -8, therefore has larger timestamp...no?

Let's review what Beatnik said:
Quote:
If you are using this page to get a straight conversion, you should remember that the true timestamp must be set at GMT.

The timestamp is constant through all timezones. It is the timezone offset (eg GMT-6) that give your time in your locale.

If you are doing server work - your server will hold the GMT timestamp, and will convert when READING the timestamp, to your servers timezone offset. Always store in GMT.

What he is saying is that timestamps are always stored in GMT. This means that when you create a timestamp from a date, first you have to convert that date/time to the time it was at that instant in Greenwich, and then get the number of seconds from that. So, for example.. if we have the date January 1, 2006, at 1:01:01 in the western united states (GMT -7 timezone, which is west of greenwich).... at that exact instant, it was Sunday, January 1st 2006,   8:01:01 in Greenwich. ... this produces the timestamp 1136102461.
Doing the same thing (using the same starting date/time) only with a different timezone (GMT +7, which is EAST of Greenwich), .... at that exact instant, it was Saturday, December 31st 2005, 18:01:01 in Greenwich.... Then we convert that to a timestamp, and we get 1136052061.

What this means (using more general terms) is that you can think of timestamps as being absolute instances in time, regardless of timezone. So if you compare the instance in time when it was Jan 01, 2006 01:01:01 at a place east of greenwich to the instance in time when it was Jan 01, 2006 01:01:01 at a place west of greenwich.... obviously, the place in the east reached that date/time first (using an absolute point of view)... and the timestamp will reflect that.   ....

The seemingly contradictory results happen because the input date is relative, and the timestamp is absolute. In other words, it was the new year first in the east (smaller timestamp), and then it was the new year in the west (larger timestamp). (The east was in the new year before the west).... and the timestamps reflect that.


Hope this helps
Name: William KhoeEmail none
Beatnik, thanks for the reply. I apologize if I missed your point, but seems like my question remains: how could GMT -8 produces a larger timestamp than GMT +8 for the same date? GMT +8 is supposed to be 16 hours ahead of GMT -8, therefore has larger timestamp...no?

Thanks!
Name: GWDYMSEmail none
Excellent tool!  Works great, day after day.  Real simple and straight to the point.  I guess to the average person, this tool is almost useless, but for people who work with Unix timestamps on a regular basis, it is a godsend.  Good deal and thanks mucho!
Name: BrentEmail none
yip same as everyone else above i use it all the time, sometimes the site is down however. not sure why but not often.
Name: HarkiEmail none
Thanks a lot for this site. I bookmarked it months ago and check back frequently - handy indeed. Smile
Name: KweenieEmail none
This has become a bookmark of mine, so handy Wink
Name: PlexusEmail none
This tool rocks. Thanks!
Name: Lothar VellingEmail info at lo-ve-media dot com
Nice tool for the rest of my joblife. The only one I found with the timezone conditions +. After someday in 2037 the tool returns buggy results ... I'll get my grandchildren informed to check out for a new tool by then Wink
Name: BeatnikEmail none
A lot of comments.

Don't know if anyone commented on the first comment. (or is it the last? - the top one on the page as I'm viewing!).

This page includes timezone.
If you are using this page to get a straight conversion, you should remember that the true timestamp must be set at GMT.

The timestamp is constant through all timezones. It is the timezone offset (eg GMT-6) that give your time in your locale.

If you are doing server work - your server will hold the GMT timestamp, and will convert when READING the timestamp, to your servers timezone offset. Always store in GMT.
Name: William KhoeEmail none
Are the timezones accurate at all? How can GMT -8 generates larger timestamp than GMT +8?! And do you take into account your own server's timezone?

Thanks
Name: Guy Who Does Yahoo! Mail supportEmail none
This is an excellent tool.  Very, very clean and smooth conversions.  I commend you on this!  Keep up the good work.
Name: ThomasEmail none
Thanks for this every-day-helping-tool!
Name: BrianEmail none
heeeyyy this is cool. i have all dates of orders in timestamp so evertytime i need to convert seconds to human-readable format i just type Unix timestamp in google and hit enter. Im too lazy to remember you site's url. Just stay first on google search results thats cool Very Happy

regards,
Brian
Name: John CoveEmail none
Use it EVERY day!  THANKS!! Smile
Name: Hicbishi.comEmail showtime_0 at hotmail dot com
it is useful to fix PHPBB board started date problem
Name: Johan GeuzeEmail none
Thanks for this tool, i use it all the time

www.linc.com.mx
Name: SimonEmail none
I use this tool all the time, it's really quite useful! Thanks. Smile
Name: OnyXEmail none
THIS IS THE GREATEST TOOL EVER!!!!!

props to the maker
Name: AdrianEmail none
Cheers, makings converting timestamps easier.
Name: jzEmail none
Great tool,

Had to make a few adjustments to my site www.kaltersiashqiptare.com and it helped a lot.

thank you Smile
Name: gogaoepEmail none
great script makes my life much easier! Thanks alot!
Name: SaHiBEmail none
really cool Script! thx a lot!!!
Name: HaSkEeREmail haskeer at fantasyempires dot com
Ludvig Emgård wrote:
I used this tool to calculate the exact date and time, that my father (for the only time in our lives) are exactly twice as old as me!!!


That's when you reach the age your father had when you was born Wink
Name: helpfulEmail dolezalek at gmail dot com
very helpful.
Name: jeff dot adesigninteractive dot comEmail none
i'm trying to write the code, a mix of PHP and HTML
select
dropdowns, for an event scheduler-- i came upon this page when i was searching for tutorials on time, timestamp, forms, etc-- you know the google drill.

anyway-- i want to build an array which will give me a certain amount of hour options for an event time in my dropdown list. it looks like your little converter thing here has just the code that i need inside (well... hmm... maybe not), so i thought if i could get a look at the script, i could probably skim what i need to make my array-- or if any of y'all have an idea for me, i'd be all happy inside.

thank you!
Name: Ludvig EmgårdEmail none
I used this tool to calculate the exact date and time, that my father (for the only time in our lives) are exactly twice as old as me!!!
Name: giverEmail none
you don't need source code. but if you want something that can do it without crossing your fingers this site doesn't go away, download this.

http://www.snapfiles.com/download/dlunixtimestamp.html
Name: HorstEmail none
Great tool. Would be even better if it had a tick box for daylight savings Wink
Name: DanseEmail none
Thanks a lot, very useful !
http://www.interdoc.ch/mouvement-danse
Name: LukeEmail none
Great tool. I use it all the time... thanks a lot!
Name: lightshowEmail none
Nice tools !
Name: msudawgEmail msudawg dot com at gmail dot com
Cool post.  I really needed this.  I wanted to also add the formulas for excel conversions:

converts a date in cel A1 to the strftime time stamp
= (A1 - 25569) * 86400

and the conversion from strftime time stamp to excel time stamp
= A1  / 86400 + 25569
Name: MicaelEmail none
What would I have done without this tool.
Banging my head against the wall perhaps.
Name: Ben HodgsonEmail none
This is not "year 2038 bug" compatible... Otherwise useful!
Name: jimEmail none
test - nice script
Name: Muhammad Junaid RazaEmail none
Nice tool, now part of ma bookmarks.
Name: martin petrikEmail none
thanks for this tool, it supported me plenty of times
Name: Amit GoyalEmail none
Hey ! very useful tool.
Name: GeorgeEmail none
Usefull tool. I use it now cause my upload form is'nt working for some reason and i have to insert the date manualy in the db, including the time Smile.
If it can have the NOW timestamp without the need for me to push that button (to have the timestamp when i acces the page) it will be perfect
Name: IainEmail none
Brilliant tool, use it constantly, thanks Very Happy
Name: TobyEmail info at eazyweb dot net
Fantastic tool. We use this frequently during the development of our popular growing www.eazySiteBuilder.com tool. Thumbs up to the developers of this excellent utility.
Name: PaulEmail pahogie at genesyslab dot co dot uk
This tool is very useful
thanks
Name: Nico ZweersEmail nico at gamewallpapers dot com
I am the webmaster of GameWallpapers.com, a site with 20.000 daily visitors. I am using this webpage for a couple years straight now Smile So yes, I find it very handy!
Name: waynoEmail wayno at waynosworld dot com
Awesome tool!  Exactly what I was looking for.  You have a prominent place in my bookmarks.
Name: DanielEmail use contact form
Zyko: UNIX timestamps only work for dates after 1978, which explains why you're experiencing these problems.
Name: ZykoEmail none
Sorry, but this tool works completely wrong! Absulutely unusuable!

2222222222 gives me 26.04.1904 21:28:46, and 26.04.1904 21:28:46 gives me 2072745074, which gives me September 7th 2035, 2:31:14... so what the hell is this tool doing??? giving some random long-integers out? *g*
Name: roaldEmail roald at rgjelsten dot com
Hi

Is it possible for me to use this tool, even though the unixtime is unsigned? my unix time is "-279491583, and this should give me a result around this week. but it gives me 1978

can someone help me?

best regard
roald
Name: SchröderEmail none
Juhu!
Name: MikeEmail none
Very handy resource, thanks.
Name: CorrynEmail none
This tool helped me alot, thanks!
Name: IainEmail none
F U C K I N G Awesome Tool!
Name: IainEmail none
**** Awesome!
Name: CheChenEmail no at no dot com
Çok güzel bir çeviri aleti - Very nice tool!

T&#351;k. - Thx
Name: etnaEmail none
helping me every day thx!
Name: SureshEmail none
This online tool helped me very much. Thanks
Name: chuckEmail chuck at eglis dot com
Thanks, i knew how to do this but having this on a website was quicker for me than opening vim and writing php code to convert this.

Thanks to google and you, you made my day
Name: Erick RobertsonEmail none
When you submit, it resets the timezone if you change it.
Name: sergioEmail none
How about a button to load the current time?
I know it loads the current time on first logon - but not on page refresh.
Name: VipulEmail none
Loved it.  Very Handy.  Thank you.
Name: Mike NeedhamEmail irishmike2004 at earthlink dot net
Could you please e-mail the code for this page to me, I could really use it to learn how to read UNIX timestamps a bit better and in a project that I am trying to go from the UNIX timestamp to a real date

Thanks in advance.
Name: RoyceEmail none
I use this timestamp convertor all the time. Good tool!!
Name: ZupplerEmail none
Don't know how often I used this!  Good thing!!
Name: DanielEmail use contact form
Kelvin: It's actually just a spiced up version of PHP's date functions. The documentation for these is available at http://www.php.net/date
Name: KelvinEmail hakoe at yahoo dot com
Quote:
Nice piece of work. Can you send me the codes for converting date to timestamp? Thank you.
Name: GaByEmail none
Great and easy tool, thanx !
Name: The Sound GuyEmail none
Thank you!  I keep coming back....  This works perfect!!!!!
Name: AdamEmail none
Nice!
Name: JohanEmail none
Nice, thank you.
Name: nanashi_namelessEmail none
fantastic tool
Name: filipcEmail none
This is PERFECT!!!

It helped me to much...!!!

Good Job!
Name: lionelEmail none
Daniel: That simply must be a bug since he specified the time zone as GMT and GMT has no concept summer time.
Name: DanielEmail use contact form
fabry: That's simply because the change from summer time to winter time took place at 1am on March 28th, so there was no 1-2am that day (the time went from 00:59 to 2:00).
Name: fabryEmail none
if I enter

28
03
2004
01
00
00
GMT

the result is:
Thursday, January 1st 1970, 0:59:59 (GMT) translates to 3599
Name: Olav Alexander MjeldeEmail olav-x at volvo-power dot net
Hi!
I think this is a good script as-is, as noone can make scripts for you, unless they are making an entire CMS for you.

It's very simple, but it may help some beginners..

I'm currently making a bit more advanced project, with php/mysql, where I have one table with every country in the world and one table with timezones.

I then run queries to get the two-digit country-name (US, UK, NO, DK, etc.).

If I find more than one row (like mexico has), I let the user select his timezone..
If there is only one row (like Norway (NO)), I just select that as default and insert into the users table.

it's still in development.. my project uses the putenv("TZ=...
Name: ÐJ ß®¥§ø|\|Email bryson at eedo dot com
ok... the timestamps are correct but the text saying what the date translate to  is wrong.
Name: ÐJ ß®¥§ø|\|Email bryson at eedo dot com
something wrong.... try to do multiple submits....it worked the first time... but then the date always stayed the same for successive submits no matter what i changed it to.
Name: DanielEmail use contact form
Guglielmo:

1057014000 in GMT +1 corresponds to 1057010400 in GMT. What the script does is take the date/time you enter, convert it to GMT (in this case move it back an hour), and convert the result which is in GMT to a Unix timestamp. The timestamp which you are claiming is "right" is not a GMT timestamp, but a GMT +1 timestamp.
Name: GuglielmoEmail gcinque at sogei dot it
There is at least one bug: I've inserted the date "2003 07 01 00:00:00" option GMT+1 (Rome) and your script reports 1057014000, but the right result is 1057010400 as you can see typing " date --date 20030701 +%s ".
Name: DanielEmail use contact form
Quote:
I noticed the form to convert a date into a timestamp retains the user's changes after it is submitted - good.  However, the timezone select list always defaults back to GMT.

It's not really a bug - I know that's what happens. Unless this is a real problem for anyone, I won't be changing the way it works.
Name: DylanEmail none
I noticed the form to convert a date into a timestamp retains the user's changes after it is submitted - good.  However, the timezone select list always defaults back to GMT.
Name: zer0fillEmail none
nifty tool. i bookmarked this page too (i'm too lazy to make it myself Razz)
Name: DanielEmail use contact form
Guest: Can you link to a page with such a problem?
Name: guestEmail none
I am sorry its returning a -1 when u try to convert timestamp on 28 march 2004 1 am gmt
Name: guestEmail none
I am sorry its returning a -1 when u try to convert timestamp on 28 march 2004 1 am gmt
Name: guestEmail none
good one but its not working when i try converting 23 march 2004, 1 am gmt.

its returning -1
Name: ChrisEmail scorpy at duesseldorf-community dot de
great tool,
it´s worth a bookmark and to tell friends Wink
Name: DavidEmail Davidh_at at freenet dot de
Hey,

Great tool!

But it will be nice if i can choose the timezone.

David, Austria
Name: NoiaEmail none
Because he's removing the front three numbers instead of the last three numbers.
Name: DanielEmail use contact form
Quote:
my timestamps have 13 numbers. The program only uses 10. When I drop the first or the last 3 numbers I get dates vom 1985 to 2038. An example is e.g. 1062483880674.
can anyone help?

From what I've been able to find, the three extra digits are due to the timestamp being in microseconds, as opposed to seconds. However I don't see why it should cause a problem to remove the last three digits...
Name: joergEmail none
my timestamps have 13 numbers. The program only uses 10. When I drop the first or the last 3 numbers I get dates vom 1985 to 2038. An example is e.g. 1062483880674.
can anyone help?
Name: banksEmail none
good job Daniel

A thoroughly usefull tool. Saved me writing one.

Straight into my book marks.
Name: TimEmail none
Another vote for the timezone drop down!
Name: DanielEmail use contact form
From http://www.php.net/date :
Quote:
Note: The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer). On Windows this range is limited from 01-01-1970 to 19-01-2038.
Name: netsoulEmail none
sorry, i meant 2038  above ,
Name: netsoulEmail none
this is a really helpful tool, but it doesnt let me convert timestamps for the years after 1937. e.g. if i try to find timestamp for  31st december 1038,  it shows the date of 1969 and timestamp of -1 . is this a bug in php? or is it not  year 3000 complaint?
Name: JonEmail none
Nice tool. A modification that may be useful, would be to add a dropdown box for users to select there timezone. IE 1010342461 would appear as Sunday, January 6th 2002, 12:41:01 PM in CST
Name: BlahEmail none
Daniel: I know, it was just a note to people using this, not a bug report Smile
Name: DanielEmail use contact form
Yes, because PHP's date function accepts the input. If people want to enter invalid dates that's their problem Smile
Name: BlahEmail none
FYI you can use out-of-range input for the date input fields and still get a valid timestamp / date.
Name: razigalEmail none
hot! thank you ~~
Name: Delayed CMS-AdminEmail none
Thank God, this one saved my live... Wink
Name: DanielEmail use contact form
jmr: Your wish is my command! Very Happy
Name: jmrEmail none
Oh that's a nice one.
It'd be cool if it put the current values in it instead of "0" if i don't enter anything.
Name: shoeman22Email none
Awesome, I was pulling my hair out over some timezone problems with timestamps, but this cleared things up.  Thx
Name: JustinEmail webmaster at bluesweb dot co dot uk
Very Nice, came in very handy for me Smile
Name: DanielEmail use contact form
Daniel Klein: Do you mean the getlastmod function? http://en.php.net/getlastmod
Name: Daniel KleinEmail danielk at postmaster dot co dot uk
Do you know of a way to get the timestamp of a file from your server with PHP code?
Name: janoshEmail none
jes, very useful.
thx!

greetz of switzerland
Name: kaiEmail none
thanks!
Name: AnthonyEmail none
Saved me from rolling my own.
Name: Creator of GodEmail none
Thank you for this! It is fast and therefore bookmarked. Great. Need it to edit my MySQL-Timestamps.  (-:
Name: raphaelEmail none
nice tool =)
in bookmarks too =)
Name: DanielEmail use contact form
There is no real "code": it is simply a script which makes use of the mktime (http://www.php.net/manual/en/function.mktime.php) and date functions in PHP (http://www.php.net/manual/en/function.date.php).
Name: AndresEmail acl at anida dot cl
Hi,

can you send me the source code for the Date to Timestamp program ???

Regards,

Andres
Name: georgesEmail none
Nice tools, in bookmark now.

Add a new comment

This page is © Copyright 2002-2008, 4WebHelp. It may not be reproduced without 4WebHelp's prior permission.