anand

Well-Known Member
Nov 11, 2002
1,432
1
168
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
 

xnull

Well-Known Member
Sep 9, 2001
156
0
316
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. ;)
 

anand

Well-Known Member
Nov 11, 2002
1,432
1
168
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