The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

setup date

Discussion in 'General Discussion' started by anand, Apr 14, 2002.

  1. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    The setup date feature in cpanel is quite helpful to keep records of the setup dates of any account created. Though before this feature was released we have several accounts of which we would like to insert the Setup dates manually in the cpanel so that we can refer to them at any time.

    I found that the setup date is another parameter option in each of the domain config files located at /var/cpanel/users/domain

    I am actually not able to understand how the dates are stored can some one clarify it to me please ?

    one example, date of Wed Apr 3 17:43:47 2002 was replicated as STARTDATE=1017836027. Can someone please explain it?

    regards,

    Anand
     
  2. xnull

    xnull Well-Known Member

    Joined:
    Sep 9, 2001
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    it's probably a timestamp in seconds from 1970
     
  3. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    If its the seconds, then how are the day, date stored??

    regards,

    Anand
     
  4. jumpdomain

    jumpdomain Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    perl -e 'print scalar localtime(1017836027),&\n&'
     
  5. xnull

    xnull Well-Known Member

    Joined:
    Sep 9, 2001
    Messages:
    156
    Likes Received:
    0
    Trophy Points:
    16
    Do what he said to see what it is..

    They day/date/etc aren't &stored&. It is the exact seconds from that date to the date it is for. Then the seconds are just parsed to figure out what it is.. Unless your server doesn't believe the rule of 60sec/min and 365days/yr, etc. ;)
     
  6. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    [quote:b635ac9e16][i:b635ac9e16]Originally posted by xnull[/i:b635ac9e16]

    Do what he said to see what it is..

    They day/date/etc aren't &stored&. It is the exact seconds from that date to the date it is for. Then the seconds are just parsed to figure out what it is.. Unless your server doesn't believe the rule of 60sec/min and 365days/yr, etc. ;)[/quote:b635ac9e16]

    Thx for the info. Incase i want to go the other way round ? I want to calculate these seconds from a particular date/time. How can i do it ?

    regards,

    Anand
     
Loading...

Share This Page