Jump to content


Photo

help needed


  • Please log in to reply
1 reply to this topic

#1 tauchai

tauchai
  • Members
  • PipPip
  • Member
  • 14 posts

Posted 21 June 2006 - 08:53 AM

y database store the start date and start time as 1148976000 and 1148979600 ????how to calculate? the author put the data type for start date and time as integer....how come it like this?

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 21 June 2006 - 08:59 AM

You chappy has used the timestamp - my choice for date/time too (well untill 2038 anyway!)

A timestamp is the number of seconds since 1 Jan 1970 (or something like that) I find it nice and easy in terms of storage and date/time manipulation (apart from birthdays when many are outside the supported time window).
follow me on twitter @PHPsycho




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users