v5:datetime:adodb_gmmktime
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
datetime:adodb_gmmktime [2015/11/26 16:19] – created mnewnham | v5:datetime:adodb_gmmktime [2023/05/18 18:54] (current) – Deprecated dregad | ||
---|---|---|---|
Line 9: | Line 9: | ||
int $min, | int $min, | ||
int $sec , | int $sec , | ||
- | int $month, | + | optional |
- | int $day, | + | optional |
- | int $year | + | optional |
) | ) | ||
</ | </ | ||
+ | |||
+ | <WRAP important> | ||
+ | [[datetime_index# | ||
+ | Use 64-bit native PHP functions instead. | ||
+ | </ | ||
+ | |||
===== Description ===== | ===== Description ===== | ||
- | This function converts a gmt date to a unix timestamp. | + | This function converts a gmt date to a unix timestamp. |
+ | -------------------------------------- | ||
+ | ===== Usage ===== | ||
+ | <code php> | ||
+ | $t = adodb_gmmktime(12, | ||
+ | |||
+ | print $t; | ||
+ | /* | ||
+ | * Prints -28512190200 | ||
+ | */ | ||
+ | |||
+ | $d = adodb_gmdate(' | ||
+ | print $d; | ||
+ | |||
+ | /* | ||
+ | * prints 06/20/1066 12:10:00 | ||
+ | */ | ||
+ | </ |
v5/datetime/adodb_gmmktime.txt · Last modified: 2023/05/18 18:54 by dregad