Article 126077 of comp.os.vms: Path: nntpd.lkg.dec.com!pa.dec.com!news1.digital.com!nntp-hub2.barrnet.net!hookup!news.mathworks.com!gatech!howland.reston.ans.net!xlink.net!nntp.gmd.de!news.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!tubsibr!news From: meyer@ifn.ing.tu-bs.de Newsgroups: comp.os.vms,vmsnet.sources.d Subject: ANNOUNCE: POSIXTIM V1.0 - timezone and dst aware time routines. Date: Tue, 1 Aug 95 02:22:35 GMT Organization: Inst.f.Nachrichtentechnik, TU Braunschweig, Germany Lines: 48 Distribution: world Message-ID: <3vjogn$qfv@ra.ibr.cs.tu-bs.de> References: <3vc1um$o6@mars.earthlink.net>,<3vipkg$u9n@nntpd.lkg.dec.com> NNTP-Posting-Host: ifn.ing.tu-bs.de Xref: nntpd.lkg.dec.com comp.os.vms:126077 vmsnet.sources.d:2948 In Article <3vipkg$u9n@nntpd.lkg.dec.com> cowan@btgmax.zko.dec.com (Ken Cowan) writes: > [...] > >|> I'm just finishing my work an a module containing replacement >|> routines for all the C RTL routines which are expected to handle >|> timezone and daylight saving times. >|> >|> Note that VMS always uses the local time, it has no knowledge of >|> GMT, timezones and daylight saving time. >|> >|> To implement the full POSIX behaviour of the time routines, my routines >|> expect a logical in the same format than VMS POSIX does. time() >|> then returns the seconds elapsed since 1-JAN-1970 GMT. Other routines >|> like localtime(), mktime() etc, also handle the GMT based clock values. >|> Daylight saving time is fully supported. >|> >|> The package is written in C (VAXC on VAX, DECC on Alpha) and uses >|> the RTL calendar routines localtime() and mktime() to do their work. >|> >There is a VMS system service, $GETUTC that returns UTC. It relies >on the timezone differential being setup by the system manager. >See SYS$MANAGER:UTC$CONFIGURE_TDF.COM. > >The DEC C library interface to timezones should be available in the first >field test of OpenVMS V7.0. For those who don't want to wait for OpenVMS V7.0, my POSIXTIM V1.0 library is now available from ftp://ftp.ifn.ing.tu-bs.de/vms/posixtim.zip This library also contains an utime() routine independent from POSIXTIM to set the file date. Note that this is the first release. Please report any bugs. --Eckart ----------------------------------------------------------------------------- Eckart Meyer Address: Schleinitzstr. 23 Institute for Telecommunication 38092 Braunschweig Technical University of Braunschweig Germany Phone: +49 531 391 2454 E-Mail: meyer@ifn.ing.tu-bs.de FAX: +49 531 391 5192 VMSmail: PSI%26245050351130::MEYER (DATEX-P) -----------------------------------------------------------------------------