Tag: utc

How to convert a Unix datetime to a SAS datetime

I watched with wonder as each of my daughters learned how to “tell time.” Early in their primary school careers, they brought home worksheets that featured clock faces with big-hand/little-hand configurations that they had to decipher, and exercises that asked them to draw the hands as they should appear given […]

The post How to convert a Unix datetime to a SAS datetime appeared first on The SAS Dummy.

Making up for lost time (UTC vs. DST)

Did you oversleep this morning? If you live in the United States of America, Monday morning seems to have arrived just a bit earlier, accompanied by a bit more “dark” than usual. That’s because as good time-fearing citizens, we have all set our clocks ahead by one hour so as […]

Calculating the UTC offset in your SAS session

Update 25Nov2010: I’ve updated this example to correct the code so that it works correctly for positive UTC offsets. Thanks to Bruno Müller, my colleague at SAS, for finding my mistakes.

One of my SAS colleagues was recently working on a p…