Date Functions Flashcards

0
Q

mktime( int $hour, int $minute, int $second, int $month, int $day, int $year [, int $is_dst] )

A

Returns a local, non-GMT timestamp based on the parameters provided

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

time()

A

Returns the timestamp for the current date and time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

gmmktime( int $hour, int $minute, int $second, int $month, int $day, int $year [, int is_dst] )

A

Returns a GMT date and time, in timestamp format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

strtotime( string $time )

A

Returns a timestamp by parsing a human-readable date and time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

microtime(bool $get_as_float )

A

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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

date( string $format [, int $timestamp] )

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

gmdate( string $format [, int $timestamp] )

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

strftime( string $format [, int $timestamp] )

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

gmstrftime( string $format [, int $timestamp] )

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

checkdate( int $month, int $day, int $year )

A

Returns a boolean indicating whether the date inputted is valid or not

How well did you know this?
1
Not at all
2
3
4
5
Perfectly