Making an epoch timestamp : mktime « Date « PHP






Making an epoch timestamp

 
<?
$afternoon = mktime(13,30,45,10,20,2009);

print strftime('At %I:%M:%S on %m/%d/%y, ', $afternoon);
print "$afternoon seconds have elapsed since 1/1/1970.";
?>
  
  








Related examples in the same category

1.Calculating the difference between two dates
2.Checking credit card expiration
3.Creating a Timestamp with mktime()
4.Use mktime to create a time
5.Using mktime() and date()
6.int mktime ( [int hour [, int minute [, int second [, int month[, int day [, int year [, int is_dst]]]]]]] )
7.mktime() produces a GMT timestamp.
8.mktime.php
9.Get the labor day