class PropelDateTime extends DateTime
DateTime subclass which supports serialization.
Currently Propel is not using this for storing date/time objects within model objects; however, we are keeping it in the repository because it is useful if you want to store a DateTime object in a session.
Methods
| static mixed | newInstance(mixed $value, DateTimeZone $timeZone = null, string $dateTimeClass = 'DateTime') Factory method to get a DateTime object from a temporal input | |
| static | isTimestamp($value) 
 | |
| array | __sleep() PHP "magic" function called when object is serialized. | |
| __wakeup() PHP "magic" function called when object is restored from serialized state. | 
Details
        at line 51
                static    public            mixed
    newInstance(mixed $value, DateTimeZone $timeZone = null, string $dateTimeClass = 'DateTime')
    
    Factory method to get a DateTime object from a temporal input
        at line 82
                static    public            
    isTimestamp($value)
    
    
        at line 108
                    public            array
    __sleep()
    
    PHP "magic" function called when object is serialized.
Sets an internal property with the date string and returns properties of class that should be serialized.
        at line 122
                    public            
    __wakeup()
    
    PHP "magic" function called when object is restored from serialized state.
Calls DateTime constructor with previously stored string value of date.