OS/2, eCS & ArcaOS - Technical > Utilities

UTC time set utility

(1/2) > >>

Hi everyone, I was looking for a internet time utility that would sync the clock to utc and not local time. I tried daytime but that sets it to local time.

Neil Waldhauer:
Just set TZ to UTC0 and Daytime will set to UTC.  :P

Thanks Neil for the suggestion but I have clocks that do respect the TZ variable and adjust for DST so that would be awkward. I noticed that the daytime package I downloaded also has the source to it so I think I will take a look at that.

Alex Taylor:
Try wrapping daytime in a script (or possibly a DTProgram object, or use RUN!) that sets TZ=UTC0 for that session only.

Thanks Alex, I will consider that. It certainly is not a problem to do. I still will look into the daytime source.


[0] Message Index

[#] Next page

Go to full version