If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Trying to manually change entry dates in my DB... Help !  XML
Forum Index » Advanced Guestbook Forum
Author Message
motorhead85021
Newbie

Joined: 18/05/2006 22:59:25
Messages: 2
Offline

The date field is using an 11 digit INT.
One of my dates has a value of '1152951014' which equals Saturday, July 15, 2006 03:10 AM.

Is this field in milliseconds? And if so, what's the starting date it uses?
I need to change all my dates back about 2 years, and I'm sort of stuck.

Thanks for any help.
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

no. of milliseconds since the epoch - 1900 (or was it 1901?) Jan. 1st something like 12 midnight. Google epoch.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Number of seconds since midnight January 1st 1970 I believe. Or rather at 1 second past midnight on the morning on January 1 1970 the timestamp would of been 1.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Seconds? I thought it was milliseconds?

But then thinking about it seconds would be easier to store ; )
You'd run out of space with milliseconds.

Thanks for clearing that up Carb.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Well there are 86400000 milliseconds in the day so yeah would soon be needing really long numbers.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Carbonize wrote:Well there are 86400000 milliseconds in the day so yeah would soon be needing really long numbers.

lol.

In relation to the orginal question to change it back by 2 years its that number minus - 2 x 365 x 24 x 60 x 60.

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum