Thread: Built date

  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    41

    Built date

    Does anyone know how I can store the Built date like apache does:

    # ./httpd -v
    Server version: Apache/2.0.53
    Server built: Apr 19 2005 16:27:58
    I'm using RH Linux with gcc !

    Thanks in advance,

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    There are defined macros which store this information. Here's an example of how to use them:
    Code:
    printf("The date is of this build is: %s, the time is %s.", __DATE__, __TIME__ );

    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    41
    Hey Quzah, thanks alot for the help !

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Advancing day by day until it matches a second date
    By nhubred in forum C++ Programming
    Replies: 1
    Last Post: 05-30-2009, 08:55 AM
  2. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 03:25 PM
  3. Date program starts DOS's date
    By jrahhali in forum C++ Programming
    Replies: 1
    Last Post: 11-24-2003, 05:23 PM
  4. CDate Class - handle date manipulation simply
    By LuckY in forum C++ Programming
    Replies: 5
    Last Post: 07-16-2003, 08:35 AM