Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#187005 - 27/10/2003 07:16 Test for DST?
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
Greeting oh knowledgeable personages,

Is there a way to test for DST (day light savings time) on the empeg (MKIIa)?

Preferably in BASH script.


Thanks,
_________________________
Joe Mumme

Top
#187006 - 29/10/2003 06:12 Re: Test for DST? [Re: jamville]
tms13
old hand

Registered: 30/07/2001
Posts: 1115
Loc: Lochcarron and Edinburgh
I think that the nearest you'll get without writing some (very simple) C code is date "+%z" which will give you the numeric timezone offset.

Of course, this depends on having TZ correctly set in your environment (which the player does not do, and neither does Hijack with its EXEC features).
_________________________
Toby Speight
030103016 (80GB Mk2a, blue)
030102806 (0GB Mk2a, blue)

Top
#187007 - 30/10/2003 19:27 Re: Test for DST? [Re: tms13]
jamville
journeyman

Registered: 23/08/2002
Posts: 93
Loc: South Texas
Toby,

Thank you. I am a Linux newbie. And your input helps a great deal.

(I still need to work through a BASH script tutor.)

Thanks again,
_________________________
Joe Mumme

Top