You can alternatively use the DateTime
class, which internally represents the time components independently. Thus it is not susceptible to the 2038 limitation (unless you use ::getTimestamp).
More Related Contents:
- Display which day it is? sunday or monday “php coding”? [closed]
- PHP How to find the time elapsed since a date time? [duplicate]
- Subtracting a certain number of hours, days, months or years from date
- PHP store hours, closed dates [closed]
- How to get time difference in minutes in PHP
- How to convert date to timestamp in PHP?
- A non well formed numeric value encountered
- PHP: producing relative date/time from timestamps
- Getting date format m-d-Y H:i:s.u from milliseconds
- PHP compare time
- Round minute down to nearest quarter hour
- Adding minutes to date time in PHP
- How to generate random date between two dates using php?
- Print time in 15-minute increments between two times in the same day
- how to re-format datetime string in php?
- NOW() function in PHP
- Why do timestamps have a limit to 2038?
- Formatting an SQL timestamp with PHP
- PHP: How to check if a date is today, yesterday or tomorrow
- Convert seconds into days, hours, minutes and seconds
- I have 2 dates in PHP, how can I run a foreach loop to go through all of those days?
- PHP get number of week for month
- PHP: Adding months to a date, while not exceeding the last day of the month
- Send PHP date to JavaScript date format
- What is a Unix timestamp and why use it?
- how to convert php date formats to GMT and vice versa?
- How to get Time Zone through IP Address in PHP [duplicate]
- Run a PHP script every second using CLI
- day of the week to day number (Monday = 1, Tuesday = 2)
- php weeks between 2 dates