News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

DateTime & DateDiff

Started by squares, December 29, 2008, 09:44:22 PM

Previous topic - Next topic

squares

Hello everybody,
Where can I find DateTime.inc, DateTime.lib, DateDiff.inc and DateDiff.lib?
I can't find them anywhere in my include or lib directories.

Thanks very much for any assistance you can provide!

- Gordon

Rsir

Hi,
most of the date and time functions are in kernel32.lib
and syntax and info in the API help file.
Rsir

GregL

They are in \masm32\datetime.


squares

EXCELLENT!
I realised I was using a really old version of MASM, hence the lack of libraries.
I had a look at kernel32 functions and I'm now really glad I don't have to do it that way, it looks painful.

Thanks very much for the help folks!

- Gordon

ecube

how does date and time work on international pcs(pc in china vs a pc in the US), I get military time and timezones, but is there a way with these functions to go by a universal time and date? 

GregL

#5
E^Cube,

Look at the help file \masm32\help\DateTime.chm. You can work with local or UTC times and convert back and forth.

I recently posted an update of the DateDiff function here.

I posted an example program that displays the current time for every time zone here.

[Edit] There is also a program to test the library here.

ecube

wow, very nice :D exactly what I been looking for! thanks for sharing greg, you're an all-star  :U

GregL

E^cube,

You are welcome, and thanks.  :bg