Shared Flashcard Set

Details

Time Stamps
Time Stamps - PHP
14
Computer Science
Undergraduate 1
11/23/2010

Additional Computer Science Flashcards

 


 

Cards

Term
Epoch time "0" date
Definition
january 1, 1970
Term
Time range 32 bit
Definition
1902 to January 2037
Term
Time range 64 bit
Definition
Billions of years
Term
time()
Definition
current time
Term
mktime()
Definition
set time; ($hr, $min, $sec, $mo, $day, $yr);
Can add 1 for daylight savings
Term
strtotime( )
Definition
($any_string ) i.e. $unix_timestamp = strtotime("last Monday"); echo $unix_timestamp . "
";
Term
date()
Definition
date($format, $timestamp)
date('l jS \of F Y h:i:s A');
Monday 8th of August 2005 03:12:46 PM
Term
j; l
[date()]
Definition
Day of the month without leading zeros;
A full textual representation of the day of the week (Monday).
[date()]
Term
F; n
[date()]
Definition
A full textual representation of a month, such as January or March;
Numeric representation of a month, without leading zeros
[date()]
Term
Y; y
[date()]
Definition
4 digit year; 2 digit year
[date()]
Term
A; g; H; i; s
[date()]
Definition
Uppercase antemeridian;
12-hour format of an hour without leading zeros;
24-hour format of an hour with leading zeros;
Minutes with leading zeros;
Seconds, with leading zeros;
[date()]
Term
e; I; Z
[date()]
Definition
Timezone identifier;
Whether or not the date is in daylight saving time;
Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive.
[date()]
Term
r
[date()]
Definition
formatted date i.e.
Thu, 21 Dec 2000 16:01:07 +0200
Term
strftime()
%Y
Definition
strftime($format, $timestamp);
4 digit year
Supporting users have an ad free experience!