News:

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

Formatting Data/Time Stamp

Started by Gunner, December 31, 2010, 02:03:22 AM

Previous topic - Next topic

Gunner

Searched and everything came up with current date/time stuff... I have the following I would like to convert to a string formatted for the users settings, is there a function anywhere or do I have to try to roll my own?

date stamp: 101230 so for my settings it would display 12/30/10  but want to format for users settings..
time stamp: 210105 my clock displays 2105 but want to format for users settings..

Am I missing an API or function in the MASM library?

Thanks.
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

GregL

Gunner,

Have you looked in \masm32\datetime ?  There is a help file at \masm32\help\DateTime.chm.

Use the GetLocalDateTime and DateTimeToString procedures.


Gunner

Damn, how the hell did I miss that?!
Thanks Greg, looks interesting...  :U
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

KeepingRealBusy

When there's that much 'good stuff" to read, it's really easy to miss something.

dedndave

time - such a simple concept - lol
made so very difficult by technical people
universal time, corrected time, sidereal time, solar time - the list never ends
does anybody really know what time it is ?   :P
(25 or 6 to 4, maybe)

msdn has a reduced set, which is still a little complicated since the introduction of NTFS format
http://msdn.microsoft.com/en-us/library/ms724186%28v=VS.85%29.aspx
and - they left "time_t" out from that discussion
http://msdn.microsoft.com/en-us/library/ms724228%28VS.85%29.aspx

KeepingRealBusy

Ken Nordine (sp?) knew someone who knew what time it was, and he talked about it in his record album "Word Jaz" from 1957 time frame (at least that was when I got the album).

Dave.

dedndave

man, you are older than me   :P
i thought i was old with the Chicago referenes - lol

http://www.wordjazz.com/podcast/get.php?web=wordjazz-2006-06-18-59657.mp3

KeepingRealBusy

Graduated from High School in 1957, older 'n dirt.

dedndave

i was still in diapers - lol
but - those were good years for music, cars and women   :U

KeepingRealBusy

The "good old days". Something to remember is that the days were not really that good, and we were not that old, and we were not talking about the days.

jj2007


GregL

Quotei was still in diapers - lol

I was -1.

dedndave

Greg, you're a youngster   :P
born in '55, here
my younger brother was born in '58

GregL

Quote from: dedndaveGreg, you're a youngster    :P 

I sure don't feel like a youngster.   :lol




Gunner

Damn, I was born in '74... I AM a "youngster" compared you old foggies  :bg
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com