Date Functions Flashcards
mktime( int $hour, int $minute, int $second, int $month, int $day, int $year [, int $is_dst] )
Returns a local, non-GMT timestamp based on the parameters provided
time()
Returns the timestamp for the current date and time
gmmktime( int $hour, int $minute, int $second, int $month, int $day, int $year [, int is_dst] )
Returns a GMT date and time, in timestamp format
strtotime( string $time )
Returns a timestamp by parsing a human-readable date and time
microtime(bool $get_as_float )
Returns the current timestamp in the format “microsecond second”
If $get_as_float is passed as TRUE, a float representation of the microtimestamp is returned in the format “second.microsecond”
date( string $format [, int $timestamp] )
The format of the returned string is determined by the $format argument, which consists of a variety of specifications.
If $timestamp is used, a predetermined date is formatted and returned.
gmdate( string $format [, int $timestamp] )
Returns a formatted GMT date.
The format of the returned string is determined by the $format argument, which consists of a variety of specifications.
If $timestamp is used, a predetermined date is formatted and returned.
strftime( string $format [, int $timestamp] )
The format of the returned string is determined by the $format argument, which consists of a variety of specifications using % sequences.
If $timestamp is used, a predetermined date is formatted and returned.
gmstrftime( string $format [, int $timestamp] )
Returns a GMT date.
The format of the returned string is determined by the $format argument, which consists of a variety of specifications using % sequences.
If $timestamp is used, a predetermined date is formatted and returned.
checkdate( int $month, int $day, int $year )
Returns a boolean indicating whether the date inputted is valid or not