TimeZone
Moderators: chulett, rschirm, roy
TimeZone
We have a requirement where we need to convert the remote server time to local server time, taking daylight saving into consideration. can we use a routine by which date and year from the input can be extracted and same can be compared with the daylight saving dates? Or is there any other method to accomplish the same task.
Dharani
Welcome aboard
Do you have the logic in your mind. If you do, you can put down the psuedocode here and someone can help you build a routine.
You can get the Year and month both by using ICONV/OCONV functions. Look into help.
Need more info on what do you mean by "convert the remote server time to local server time"
You can get the current time in datastage by using the DATE() function. You can manipulate it further.
Regards
Do you have the logic in your mind. If you do, you can put down the psuedocode here and someone can help you build a routine.
You can get the Year and month both by using ICONV/OCONV functions. Look into help.
Need more info on what do you mean by "convert the remote server time to local server time"
You can get the current time in datastage by using the DATE() function. You can manipulate it further.
Regards
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
You can also get at the TZ environment variable or specify "DZ" in an Oconv() to get the time zone for the DataStage server machine. How do you propose to get the remote server time and time zone? A database query perhaps?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
