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 March 19th, 2006, 05:09 AM
imparator imparator is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 14 imparator User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 25 m 34 sec
Reputation Power: 0
Time.h example please

hi guys, im extremely new to ANSI/ISO C and i need to wite a program that works much like the cal function in UNIX. the problem is i've got no idea where to start.

I've been told to use tme.h to retrieve all the dates and so on, but i cant seem to find an example or tutorial on how to use it (not one that i can understand) and so i was wondering if anyone could point me somewhere, or even suggest some other way to do it.

Reply With Quote
  #2  
Old March 19th, 2006, 06:31 AM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
Quote:
Originally Posted by imparator
hi guys, im extremely new to ANSI/ISO C and i need to wite a program that works much like the cal function in UNIX. the problem is i've got no idea where to start.

I've been told to use tme.h to retrieve all the dates and so on, but i cant seem to find an example or tutorial on how to use it (not one that i can understand) and so i was wondering if anyone could point me somewhere, or even suggest some other way to do it.


Google about Tme structure. Time is a structure with many fields.It gives you time from year to milliseconds.

What does "cal" function do in UNIX. Maybe I can help after knowing it.

Reply With Quote
  #3  
Old March 19th, 2006, 06:36 PM
imparator imparator is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2005
Posts: 14 imparator User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 25 m 34 sec
Reputation Power: 0
Quote:
Originally Posted by Cirus
Google about Tme structure. Time is a structure with many fields.It gives you time from year to milliseconds.

What does "cal" function do in UNIX. Maybe I can help after knowing it.
the cal function in UNIX displays a calendar
eg if i type cal 12 2006 it will bring up a calender for december 2006

Thanks for your reply, and thanks in advance for any other help you may provide

Reply With Quote
  #4  
Old March 19th, 2006, 09:25 PM
Cirus Cirus is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 276 Cirus User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 11 h 48 m 58 sec
Reputation Power: 4
Follow this :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/_crt_time.asp

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingC/C++ Help > Time.h example please


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 1 hosted by Hostway
Stay green...Green IT