Use mktime to create a time : mktime « Date « PHP






Use mktime to create a time

 
<?
$stamp = mktime(19,45,0,10,20,2004);
print strftime('Today is day %d of %B and day %j of the year %Y. The time is %I:%M %p (also known as %H:%M).', $stamp);
?>
  
  








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.Using mktime() and date()
5.int mktime ( [int hour [, int minute [, int second [, int month[, int day [, int year [, int is_dst]]]]]]] )
6.mktime() produces a GMT timestamp.
7.mktime.php
8.Making an epoch timestamp
9.Get the labor day