pdf-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pdf-devel] Some thoughts on the time module...


From: Zac Brown
Subject: Re: [pdf-devel] Some thoughts on the time module...
Date: Sun, 29 Jun 2008 16:49:30 -0700
User-agent: Thunderbird 2.0.0.14 (X11/20080505)

address@hidden wrote:
Hi Zac.

As I'm working through the filesystem disk implementation, I've come across a need to nicely read in Win32 and UNIX time formats and generate a pdf_time_t format.

   Unfortunately that functionality doesn't exist in the time module.

What data types are these? timeval structures?


I'm working on getting item properties, one of which is creation/modification times. Win32's time value is two DWORDS (high value and low value) and the UNIX time is obviously time_t.

They're not equivalent in structure etc. so I think instead of messily doing the conversion inside the function I'm working on, we probably should develop some sort of functions to do these things for us.

One thought is to add a "misc" class of functions that does things primarily related to cross-platformness.

Just some thoughts, either way I think we need a function to do this, whether its in the time module or some sort of cross-platform module.

-Zac




reply via email to

[Prev in Thread] Current Thread [Next in Thread]