A follow up on my previous post.  25569 is the number of days (including leap 
days between 1900 and 1970.  Since your date begins on 1904 you would need to 
add 1461 (365.25) to your number to match the start dates.

Tom Nesler


-----Original Message-----
From: delphi-boun...@elists.org [mailto:delphi-boun...@elists.org] On Behalf Of 
Neil Beshoori
Sent: Tuesday, November 13, 2012 4:19 PM
To: Delphi@elists.org
Subject: Help with dateTime problem

Hi

I am using my trusty old Delphi 5 and struggling with the following problem

I am trying to interpret a Truetype/opentype font creation date.
I can read other data from the 'head' table in the font file correctly but
not the timedate issue

The spec has the following description
(http://www.microsoft.com/typography/otspec/head.htm)

Format
LONGDATETIME which is Number of seconds since 12:00 midnight, January 1,
1904. 64-bit integer

I am creating an array of word to read this structure with the following

longDateTime = array[0..3] of Word;

I am aware of the swapped words issues.

One font has date 06/08/1990 and time 14:54:50
The hex dump in the file is 00 00 00 00 A2 E3 27 2A

Can anybody please help/explain how I can get above date/time from this hex
dump?

kind regards
Neil

_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list
Delphi@elists.org
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to