Dates and Times

  • Frank M. Kromann


PHP does not have a variable type dedicated to storing date or time values. Instead, integers are used to indicate the number of seconds before or since January 1st, 1970, also called Epoc. When dates and times are treated as a single value they are called a timestamp. The use of integers makes it easy to calculate differences between two timestamps as ordinary math applies.


Current Time Time Zone Anonymous User Format String Coordinate Universal Time 

Copyright information

© Frank M. Kromann 2016

Authors and Affiliations

  • Frank M. Kromann
    • 1
  1. 1.Trabuco CanyonUSA

Personalised recommendations