DateTime::createFromFormat
  • References/PHP/Function/Date and Time/DateTime/DateTime

(PHP 5 >= 5.3.0, PHP 7) Returns new DateTime object formatted according to the specified format

2025-01-10 15:47:30
mktime
  • References/PHP/Function/Date and Time/DateTime

(PHP 4, PHP 5, PHP 7) Get Unix timestamp for a date

2025-01-10 15:47:30
DateTimeImmutable::setTime
  • References/PHP/Function/Date and Time/DateTime/DateTimeImmutable

(PHP 5 >= 5.5.0, PHP 7) Sets the time public

2025-01-10 15:47:30
DateTimeImmutable::setTimestamp
  • References/PHP/Function/Date and Time/DateTime/DateTimeImmutable

(PHP 5 >= 5.5.0, PHP 7) Sets the date and time based on an Unix timestamp

2025-01-10 15:47:30
DateTimeImmutable::setTimezone
  • References/PHP/Function/Date and Time/DateTime/DateTimeImmutable

(PHP 5 >= 5.5.0, PHP 7) Sets the time zone

2025-01-10 15:47:30
DateTime::getOffset
  • References/PHP/Function/Date and Time/DateTime/DateTime

(PHP 5 >= 5.2.0, PHP 7) Returns the timezone offset

2025-01-10 15:47:30
date_timestamp_get
  • References/PHP/Function/Date and Time/DateTime

(PHP 5 >= 5.3.0, PHP 7) Alias of

2025-01-10 15:47:30
date_interval_create_from_date_string
  • References/PHP/Function/Date and Time/DateTime

(PHP 5 >= 5.3.0, PHP 7) Alias of

2025-01-10 15:47:30
DateTimeImmutable::modify
  • References/PHP/Function/Date and Time/DateTime/DateTimeImmutable

(PHP 5 >= 5.5.0, PHP 7) Creates a new object with modified timestamp

2025-01-10 15:47:30
timezone_name_get
  • References/PHP/Function/Date and Time/DateTime

(PHP 5 >= 5.2.0, PHP 7) Alias of

2025-01-10 15:47:30