C/C++ Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingC/C++ Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old June 27th, 2005, 12:21 PM
Betos Betos is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 1 Betos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 55 sec
Reputation Power: 0
Conversion from String to Time_t

Hello folks,

I need some help with my C++ program, hope you can offer it to me.
I used fout<<time(0); to write the actual time to a file.
Now I need to transform the string which I retrieve from the file, back to time_t type, to be able to use the difftime function to calculate the time difference between time1 and time2 in seconds.

The problem is, that I am not able to test the time function at the moment, so it might also be possible to use difftime without transformation. I hope you can tell me, if this is so.


Hopefully I managed to describe my problem in an understandable way, as I am no native english speaker.

Best Regards, Betos

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Conversion from String to Time_t


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT