Class QDateTimeSpan
Class QDateTimeSpan: This class is used to calculate the time difference between two dates (including time)
- QBaseClass
- QDateTimeSpan
public
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
new
|
#
Difference(
Calculates the difference between this DateSpan and another DateSpan |
public
|
#
SetFromQDateTime(
Sets current QDateTimeSpan to the difference between two QDateTime objects |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
integer
|
|
protected
integer
|
|
protected
integer
|
|
protected
integer
|
|
protected
integer
|
|
public
|
|
public
|
|
public
null|string
|
#
SimpleDisplay( )
Returns the time difference in approximate duration e.g. "about 4 months" or "4 minutes" |
protected
array
|
|
public
mixed
|
|
public
mixed
|
OverrideAttributes(),
__call()
|
integer |
SecondsPerYear
Number of seconds in an year |
#
31556926
|
integer |
SecondsPerMonth
Number of seconds in a month (assuming 30 days in a month) |
#
2592000
|
integer |
SecondsPerDay
Number of seconds per day |
#
86400
|
integer |
SecondsPerHour
Number of seconds in an hour |
#
3600
|
integer |
SecondsPerMinute
Number of seconds per minute |
#
60
|
protected
integer
|
$intSeconds
Seconds variable which will be used to calculate the timespan |
public
integer
|
$Seconds
Number seconds which correspond to the time difference |
public read-only
integer
|
$Years
Years in the calculated timespan |
public read-only
integer
|
$Months
Months in the calculated timespan |
public read-only
integer
|
$Days
Days in the calculated timespan |
public read-only
integer
|
$Hours
Hours in the calculated timespan |
public read-only
integer
|
$Minutes
Minutes in the calculated timespan |