News:

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

Time Formatting

Started by msmith, January 14, 2006, 03:52:11 AM

Previous topic - Next topic

msmith

Are there any formating functions in the API to format Systime and LocalTime into ASCII format?

This woundn't be that difficult, but why "roll your own" if they already exist>

P1

Unless you call into a runtime library of HLL, I have not seen a MASM/ASM library of Time/Date functions.

I have rolled my own for my programs.

Regards,  P1  :8)

farrier

msmith,

Try:

GetTimeFormat
GetDateFormat

hth,

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

msmith

Thanks to all.

Ironically, there is no reference to these functions in the Time Functions page nor in any of the separate Time Function pages in my MSDN.

GregL


MichaelW

eschew obfuscation

msmith

Thanks to all.

GetTimeFormat and GetDateFormat are slightly on the overkill side, but work very well for me. If I had written my own I wouldnn't have had so many options, but someone using my compiler may find good use for the options.

Mike