Time() and Daylight Savings time changes

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
jneasy
Participant
Posts: 32
Joined: Sun Jan 29, 2012 8:47 pm
Location: Australia

Time() and Daylight Savings time changes

Post by jneasy »

I have a question regarding Time() during Daylight Savings Time (DST) changes.

When DST ends and 2am occurs twice in the one day will the Time() function return '7200' twice?
Also when DST begins and 2am magically becomes 3am, does Time() return '10800'?

Cheers,
Joseph Neasy
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Since it is checking the system time: Yes. Yes.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jneasy
Participant
Posts: 32
Joined: Sun Jan 29, 2012 8:47 pm
Location: Australia

Post by jneasy »

Thanks Craig!

I thought that might be the case but couldn't find any info or forum post to confirm.

Cheers,
Joseph Neasy
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

To be honest, I can't say that I've confirmed this personally through actual experimentation and observance. I'd just be shocked as hell if it doesn't work that way. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply