Time

This is a discussion on Time within the C Programming forums, part of the General Programming Boards category; I need to show the time and date in a C program. I must do this inside the program. I ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    14

    Time

    I need to show the time and date in a C program. I must do this inside the program. I know in c++ it was __TIME__ and __DATE__ . But this does not work in C I think it has something to do with the printf statement. Does anyone know how to do this?

    Thanks

  2. #2
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,825
    Use the search tool on the site. There's posts about this all the time.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to get current time
    By tsubasa in forum C Programming
    Replies: 3
    Last Post: 05-01-2009, 02:03 AM
  2. Replies: 11
    Last Post: 03-29-2009, 12:27 PM
  3. Help with assignment!
    By RVDFan85 in forum C++ Programming
    Replies: 12
    Last Post: 12-02-2006, 11:46 PM
  4. calculating user time and time elapsed
    By Neildadon in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2003, 05:00 PM
  5. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 09:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21