delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/08/16/19:40:46

From: dbe AT wgn DOT net ($Bill Luebkert)
Subject: Re: Registry Date format in Windows
16 Aug 1998 19:40:46 -0700 :
Message-ID: <35D6FEC3.6BA6F4A0.cygnus.gnu-win32@wgn.net>
References: <35D62364 DOT 2B567C60 AT omedia DOT ch>
Mime-Version: 1.0
To: "gnu-win32 AT cygnus DOT com" <gnu-win32 AT cygnus DOT com>

Guglielmo Pasa wrote:
> 
> How is the date stored in the registry of Windows ?
> 
> For  example I installed a programm the 04.08.98  at 14h30 (4th August 98) and in
> the registry the date is written as
> 
> 902233852
> 
> How is it converted ? What is the algorihm ?

Looks like seconds since the Epoch (Jan 1, 1970).  Except for the 
100 and 400 year exceptions and leap year tallying, it's just the 
simple conversion of years, months, days, hours and minutes to 
seconds since the Epoch time.

Here's the BSD man page for the asctime, ctime, difftime, gmtime, 
localtime, mktime functions:

http://www.bsd.com/bsdi-man?proto=1.1&query=asctime&msection=3&apropos=0

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles
  / ) /--<  o // //      Mailto:dbe AT wgn DOT net
-/-' /___/_<_</_</_    http://www.wgn.net/~dbe/
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019