Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFAbsoluteTimeMBS class.

CFAbsoluteTimeMBS.AddGregorianUnits(timezone as CFTimeZoneMBS, units as CFGregorianUnitsMBS) as CFAbsoluteTimeMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Adds gregorian time units to the given absolute time and returns the result.

Returns nil on any error.
Timezone is optional and can be nil.

CFAbsoluteTimeMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor to initialize the absolution time with the current time.
Example
dim CFDateLocal as new CFAbsoluteTimeMBS
dim CFTimeZone as new CFTimeZoneMBS

dim MyDSTState as Boolean = CFTimeZone.IsDaylightSavingTime(CFDateLocal)

MsgBox str(MyDSTState)

See also:

CFAbsoluteTimeMBS.Constructor(value as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 10.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The constructor to initialize the absolution time with the given value.
Example
dim a as new CFAbsoluteTimeMBS(5)
MsgBox str(a.Value)

See also:

CFAbsoluteTimeMBS.DayofWeek(timezone as CFTimeZoneMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an integer representing the day of the week indicated by the specified date.
Example
dim t as new CFAbsoluteTimeMBS
MsgBox str(t.DayofWeek(nil))

CFAbsoluteTimeMBS.DayofYear(timezone as CFTimeZoneMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an integer representing the day of the year indicated by the specified date.
Example
dim t as new CFAbsoluteTimeMBS
MsgBox str(t.DayofYear(nil))

CFAbsoluteTimeMBS.GetDifferenceAsGregorianUnits(secondtime as CFAbsoluteTimeMBS, timezone as CFTimeZoneMBS, flags as Integer) as CFGregorianUnitsMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the difference of the two absolute times in gregorian units.

Timezone is optional and may be nil.

For flags:
kCFGregorianUnitsYears= 1
kCFGregorianUnitsMonths= 2
kCFGregorianUnitsDays= 4
kCFGregorianUnitsHours= 8
kCFGregorianUnitsMinutes= 16
kCFGregorianUnitsSeconds= 32
kCFGregorianAllUnits= &hFFFFFF

CFAbsoluteTimeMBS.GregorianDate(timezone as CFTimeZoneMBS) as CFGregorianDateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns the gregorian date for the given absolute time.
Example
dim t as new CFAbsoluteTimeMBS
dim g as CFGregorianDateMBS = t.GregorianDate(nil)
MsgBox str(g.Year)

Timezone is optional and can be nil.
Returns nil on any error.

CFAbsoluteTimeMBS.WeekofYear(timezone as CFTimeZoneMBS) as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method CoreFoundation MBS MacCF Plugin 3.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an integer representing the week of the year indicated by the specified date.
Example
dim t as new CFAbsoluteTimeMBS
MsgBox str(t.WeekofYear(nil))

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...