Thread: Time in seconds

  1. #1
    Registered User
    Join Date
    Apr 2011

    Time in seconds

    How to get the time from 1970(where time in PC starts) in sconds?

  2. #2
    Join Date
    Aug 2010
    Ontario Canada
    Did you even look at your library documentation?

    #include <time.h>
    int x = time(NULL);

    "Asking dumb questions on forums" is not an essential programming skill...
    Knowing how to find things in compiler and library documentation is.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Grouping Question
    By baikal_m in forum C Programming
    Replies: 7
    Last Post: 10-26-2010, 04:41 PM
  2. NtSetSystemTime() failed
    By medp7060 in forum C++ Programming
    Replies: 11
    Last Post: 04-02-2010, 02:58 AM
  3. Killing someones grandparents
    By nickname_changed in forum A Brief History of
    Replies: 37
    Last Post: 09-07-2003, 07:56 AM
  4. The Timing is incorret
    By Drew in forum C++ Programming
    Replies: 5
    Last Post: 08-28-2003, 04:57 PM
  5. time class
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 12-11-2001, 10:12 PM

Tags for this Thread