Time in seconds

This is a discussion on Time in seconds within the C Programming forums, part of the General Programming Boards category; How to get the time from 1970(where time in PC starts) in sconds?...

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    3

    Time in seconds

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

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Did you even look at your library documentation?

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

    "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 Cprogramming.com
    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, 09:12 PM

Tags for this Thread


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