AminetAminet
Search:
83502 packages online
About
Recent
Browse
Search
Upload
Setup
Services

util/time/dstd.lha

Mirror:Random
Showing:m68k-amigaosgeneric
No screenshot available
Short:Daylight Saving Time Determination
Author:Thomas Winischhofer
Uploader:thomas winischhofer net (Thomas Winischhofer)
Type:util/time
Version:1.00
Architecture:m68k-amigaos >= 2.0
Date:2021-04-10
Download:http://aminet.net/util/time/dstd.lha - View contents
Readme:http://aminet.net/util/time/dstd.readme
Downloads:135

DSTD - Daylight Saving Time Determination utility

A small utility that checks whether or not the current
date/time is within the EU's or USA's DST period.
Comes handy in connection with a NTP client in order to 
calculate the required UTC time difference. The date 
needs to be current before calling the utility, so
a working realtime clock is of essence, or calling
the ntp sync tool once beforehand.

Return code is 10 if DST is active, 0 if not.

Beginning and end dates are 
- EU: Last sundays in March and November;
- USA: Second sunday in March, first Sunday in November.

By default, EU rules are assumed. The command line switch
"USA" puts it in USA mode.

Usage example:
  failat 20
  dstd
  if warn
     ntpsync -d120 ....
  else
     ntpsync -d60 ...
  endif

Version history:
1.00
- Initial release




Contents of util/time/dstd.lha
PERMISSION  UID  GID    PACKED    SIZE  RATIO METHOD CRC     STAMP     NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown]                  477     652  73.2% -lh5- d48d Apr  8 12:38 dstd
[unknown]                  578    1037  55.7% -lh5- 6f5e Apr  9 08:44 dstd.readme
---------- ----------- ------- ------- ------ ---------- ------------ ----------
 Total         2 files    1055    1689  62.5%            Apr 11 05:09

Aminet © 1992-2021 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>