GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 13-Jul-2004, 04:51
gmn gmn is offline
Junior Member
 
Join Date: Aug 2003
Posts: 33
gmn is on a distinguished road

time format


Is there a C/MFC function to convert an integer (or other) type variable to a standard hh:mm:ss time format? Or do you have to do this yourself with the % operator or something....
  #2  
Old 13-Jul-2004, 18:55
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Quote:
Originally Posted by gmn
Is there a C/MFC function to convert an integer (or other) type variable to a standard hh:mm:ss time format? Or do you have to do this yourself with the % operator or something....
If all you have is an int, no. the time functions have no idea what time-zero is so you won't get good information. But it you have a value from a time function, yes. strftime(), asctime() are a couple functions.
__________________

Age is unimportant -- except in cheese
 
 

Recent GIDBlogFlickr uploads of IA pictures by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[CONTEST?]Data Structure Test dsmith C Programming Language 2 06-Jun-2004 15:13
Rookie problem with date format cave monkey MySQL / PHP Forum 4 18-Mar-2004 08:41
Re: Programming Techniques WaltP C Programming Language 0 09-Mar-2004 23:56
time Problem zuzupus MySQL / PHP Forum 9 24-Jul-2003 07:02

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:47.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.