Friday, March 14, 2008

How to set timezone in busybox

busybox time display utility date, by default use UTC zone. To change time zone to PST.
set TZ=PST8PDT, where PST is a acrynom for Pacific standard time, 8=PST is 8 hours ealier than UTC, PDT=pacific daylight saving time.

To change to mountain time, which is GMT-6. set TZ=MST6MDT.

Another example.
TZ=NST3:30NDT1:30
This means that Newfoundland Standard Time (NST) is 3.5 hours
earlier than Coordinated Universal Time (UTC). Both standard
time and daylight saving time apply to this locale. Newfoundland
Daylight Time is 1.5 hours earlier than Coordinated Universal
Time (UTC).


No comments: