Aeon\Calendar\TimeUnit

View at GitHub ( 1.x )
Introduction

Class synopis

class final TimeUnit implements Unit
{
private __construct ( bool $negative , int $seconds , int $microsecond )
public static precise ( float $seconds ) : self
public static fromDateInterval ( \DateInterval $dateInterval ) : self
public static fromDateString ( string $dateString ) : self
public static millisecond ( void ) : self
public static milliseconds ( int $milliseconds ) : self
public static day ( void ) : self
public static days ( int $days ) : self
public static hour ( void ) : self
public static hours ( int $hours ) : self
public static minute ( void ) : self
public static minutes ( int $minutes ) : self
public static second ( void ) : self
public static seconds ( int $seconds ) : self
public static negative ( int $seconds , int $microsecond ) : self
public static positive ( int $seconds , int $microsecond ) : self
public __serialize ( void ) : array
public toDateInterval ( void ) : \DateInterval
public isZero ( void ) : bool
public isNegative ( void ) : bool
public isPositive ( void ) : bool
public add ( self $timeUnit ) : self
public sub ( self $timeUnit ) : self
public multiply ( self $multiplier ) : self
public divide ( self $divider ) : self
public modulo ( self $divider ) : self
public isGreaterThan ( self $timeUnit ) : bool
public isGreaterThanEq ( self $timeUnit ) : bool
public isLessThan ( self $timeUnit ) : bool
public isLessThanEq ( self $timeUnit ) : bool
public isEqual ( self $timeUnit ) : bool
public inSeconds ( void ) : int
public inSecondsPrecise ( void ) : string
public inSecondsAbs ( void ) : int
public inTimeSeconds ( void ) : int
public inHours ( void ) : int
public inHoursAbs ( void ) : int
public inTimeHours ( void ) : int
public inMinutes ( void ) : int
public inMinutesAbs ( void ) : int
public inTimeMinutes ( void ) : int
public inDays ( void ) : int
public inDaysAbs ( void ) : int
public microsecond ( void ) : int
public microsecondString ( void ) : string
public inMilliseconds ( void ) : int
public inTimeMilliseconds ( void ) : int
public inMillisecondsAbs ( void ) : int
public invert ( void ) : self
public toNegative ( void ) : self
public toPositive ( void ) : self
}
Table of Contents