Thread: Want to get system time...how?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Use the localtime() function.
    There's an example on that page.
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  2. #2
    Registered User
    Join Date
    Feb 2011
    Posts
    40
    Hello cpjust;
    Thanks for the links, but I have a problem, when ever I copy the code into my IDE
    (Bloodshed Dev-C++) it runs an old DOS or command prompt window I tried it for localtime, ctime with the same result, and I just wanted to ask, What is going on??

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Time for a new system....again
    By VirtualAce in forum Tech Board
    Replies: 6
    Last Post: 06-18-2007, 06:48 AM
  2. time of system
    By arian in forum C++ Programming
    Replies: 3
    Last Post: 12-10-2003, 12:51 PM
  3. System Time
    By Leeman_s in forum C++ Programming
    Replies: 2
    Last Post: 05-23-2003, 06:45 PM
  4. System Time
    By MethodMan in forum C Programming
    Replies: 4
    Last Post: 03-16-2003, 02:07 PM
  5. system time
    By jpre in forum C++ Programming
    Replies: 2
    Last Post: 09-29-2001, 09:46 PM