TimeSpan
Overview
Type to store a span of time.
Location
-
Reference:
- Elements.dll .NET, .NET Core 6.0, .NET Standard 2.0
- elements.jar Cooper
- Elements.fx Island, ToffeeV2
- libElements.fx Toffee
- Namespace: RemObjects.Elements.RTL
- Platforms: .NET, .NET Core 6.0, .NET Standard 2.0, Cooper, Island, Toffee, ToffeeV2
- Mapped to:
-
Ancestry:
constructor (Int64)
Creates a timespan with the given amount of ticks.
constructor(aTicks: Int64)
TimeSpan(Int64 aTicks)
init(_ aTicks: Int64)
TimeSpan(Int64 aTicks)
Sub New(aTicks As Int64)
Parameters:
- aTicks:
Creates a timespan with the given amount of days, hours, minutes, seconds, and msec.
Parameters:
- d:
- h:
- m:
- s:
- ms:
Creates a timespan with the given amount of hours, minutes, seconds.
Parameters:
- h:
- m:
- s:
Add two timespans together, returning the new span.
Parameters:
- ts:
Parameters:
- ts:
Days
Returns the nr of days in this timespan.
property Days: Int32 read;
Int32 Days { get; }
var Days: Int32 { get{} }
Integer Days { __get; }
ReadOnly Property Days() As Int32
FromDays
Create a timespan form a number of days.
Parameters:
- d:
FromHours
Create a timespan form a number of hours.
Parameters:
- d:
FromMilliseconds
Create a timespan form a number of msec.
Parameters:
- d:
FromMinutes
Create a timespan form a number of minutes.
Parameters:
- d:
FromSeconds
Create a timespan form a number of seconds.
Parameters:
- d:
FromTicks
Create a timespan form a number of ticks.
Parameters:
- d:
Hours
Returns the hours; this is always between 0 and 23.
property Hours: Int32 read;
Int32 Hours { get; }
var Hours: Int32 { get{} }
Integer Hours { __get; }
ReadOnly Property Hours() As Int32
Milliseconds
Returns the miliseconds; this is always between 0 and 1000.
property Milliseconds: Int32 read;
Int32 Milliseconds { get; }
var Milliseconds: Int32 { get{} }
Integer Milliseconds { __get; }
ReadOnly Property Milliseconds() As Int32
Minutes
Returns the minutes ; this is always between 0 and 59.
property Minutes: Int32 read;
Int32 Minutes { get; }
var Minutes: Int32 { get{} }
Integer Minutes { __get; }
ReadOnly Property Minutes() As Int32
Negate Cooper, Island, Toffee, ToffeeV2
Negate this timespan.
method Negate: TimeSpan
TimeSpan Negate()
func Negate() -> TimeSpan
TimeSpan Negate()
Function Negate() As TimeSpan
Negate .NET, .NET Core 6.0, .NET Standard 2.0
Seconds
Returns the seconds; this is always between 0 and 59.
property Seconds: Int32 read;
Int32 Seconds { get; }
var Seconds: Int32 { get{} }
Integer Seconds { __get; }
ReadOnly Property Seconds() As Int32
Subtract two timespans.
Parameters:
- ts:
Parameters:
- ts:
Ticks
Returns the ticks in this timespan.
property Ticks: Int64 read;
Int64 Ticks { get; }
var Ticks: Int64 { get{} }
Int64 Ticks { __get; }
ReadOnly Property Ticks() As Int64
TicksPerDay
Total ticks per day.
const TicksPerDay: Int64 = 864000000000;
const Int64 TicksPerDay = 864000000000
static let TicksPerDay: Int64 = 864000000000
static final Int64 TicksPerDay = 864000000000
Dim TicksPerDay As Int64 = 864000000000
TicksPerHour
Total ticks per hour.
const TicksPerHour: Int64 = 36000000000;
const Int64 TicksPerHour = 36000000000
static let TicksPerHour: Int64 = 36000000000
static final Int64 TicksPerHour = 36000000000
Dim TicksPerHour As Int64 = 36000000000
TicksPerMillisecond
Total ticks per msec.
const TicksPerMillisecond: Int64 = 10000;
const Int64 TicksPerMillisecond = 10000
static let TicksPerMillisecond: Int64 = 10000
static final Int64 TicksPerMillisecond = 10000
Dim TicksPerMillisecond As Int64 = 10000
TicksPerMinute
Total ticks per minute.
const TicksPerMinute: Int64 = 600000000;
const Int64 TicksPerMinute = 600000000
static let TicksPerMinute: Int64 = 600000000
static final Int64 TicksPerMinute = 600000000
Dim TicksPerMinute As Int64 = 600000000
TicksPerSecond
Total ticks per second.
const TicksPerSecond: Int64 = 10000000;
const Int64 TicksPerSecond = 10000000
static let TicksPerSecond: Int64 = 10000000
static final Int64 TicksPerSecond = 10000000
Dim TicksPerSecond As Int64 = 10000000
TotalDays
Returns the nr of days in this timespan.
property TotalDays: Double read;
Double TotalDays { get; }
var TotalDays: Double { get{} }
Double TotalDays { __get; }
ReadOnly Property TotalDays() As Double
TotalHours
Returns this timespan as total number of hours.
property TotalHours: Double read;
Double TotalHours { get; }
var TotalHours: Double { get{} }
Double TotalHours { __get; }
ReadOnly Property TotalHours() As Double
TotalMilliSeconds
Returns this timespan as total number of msec.
property TotalMilliSeconds: Double read;
Double TotalMilliSeconds { get; }
var TotalMilliSeconds: Double { get{} }
Double TotalMilliSeconds { __get; }
ReadOnly Property TotalMilliSeconds() As Double
TotalMinutes
Returns this timespan as total number of minutes.
property TotalMinutes: Double read;
Double TotalMinutes { get; }
var TotalMinutes: Double { get{} }
Double TotalMinutes { __get; }
ReadOnly Property TotalMinutes() As Double
TotalSeconds
Returns this timespan as total number of seconds.
TicksPerDay
Total ticks per day.
const TicksPerDay: Int64 = 864000000000;
const Int64 TicksPerDay = 864000000000
static let TicksPerDay: Int64 = 864000000000
static final Int64 TicksPerDay = 864000000000
Dim TicksPerDay As Int64 = 864000000000
TicksPerHour
Total ticks per hour.
const TicksPerHour: Int64 = 36000000000;
const Int64 TicksPerHour = 36000000000
static let TicksPerHour: Int64 = 36000000000
static final Int64 TicksPerHour = 36000000000
Dim TicksPerHour As Int64 = 36000000000
TicksPerMillisecond
Total ticks per msec.
const TicksPerMillisecond: Int64 = 10000;
const Int64 TicksPerMillisecond = 10000
static let TicksPerMillisecond: Int64 = 10000
static final Int64 TicksPerMillisecond = 10000
Dim TicksPerMillisecond As Int64 = 10000
TicksPerMinute
Total ticks per minute.
const TicksPerMinute: Int64 = 600000000;
const Int64 TicksPerMinute = 600000000
static let TicksPerMinute: Int64 = 600000000
static final Int64 TicksPerMinute = 600000000
Dim TicksPerMinute As Int64 = 600000000
TicksPerSecond
Total ticks per second.
Days
Returns the nr of days in this timespan.
property Days: Int32 read;
Int32 Days { get; }
var Days: Int32 { get{} }
Integer Days { __get; }
ReadOnly Property Days() As Int32
Hours
Returns the hours; this is always between 0 and 23.
property Hours: Int32 read;
Int32 Hours { get; }
var Hours: Int32 { get{} }
Integer Hours { __get; }
ReadOnly Property Hours() As Int32
Milliseconds
Returns the miliseconds; this is always between 0 and 1000.
property Milliseconds: Int32 read;
Int32 Milliseconds { get; }
var Milliseconds: Int32 { get{} }
Integer Milliseconds { __get; }
ReadOnly Property Milliseconds() As Int32
Minutes
Returns the minutes ; this is always between 0 and 59.
property Minutes: Int32 read;
Int32 Minutes { get; }
var Minutes: Int32 { get{} }
Integer Minutes { __get; }
ReadOnly Property Minutes() As Int32
Seconds
Returns the seconds; this is always between 0 and 59.
property Seconds: Int32 read;
Int32 Seconds { get; }
var Seconds: Int32 { get{} }
Integer Seconds { __get; }
ReadOnly Property Seconds() As Int32
Ticks
Returns the ticks in this timespan.
property Ticks: Int64 read;
Int64 Ticks { get; }
var Ticks: Int64 { get{} }
Int64 Ticks { __get; }
ReadOnly Property Ticks() As Int64
TotalDays
Returns the nr of days in this timespan.
property TotalDays: Double read;
Double TotalDays { get; }
var TotalDays: Double { get{} }
Double TotalDays { __get; }
ReadOnly Property TotalDays() As Double
TotalHours
Returns this timespan as total number of hours.
property TotalHours: Double read;
Double TotalHours { get; }
var TotalHours: Double { get{} }
Double TotalHours { __get; }
ReadOnly Property TotalHours() As Double
TotalMilliSeconds
Returns this timespan as total number of msec.
property TotalMilliSeconds: Double read;
Double TotalMilliSeconds { get; }
var TotalMilliSeconds: Double { get{} }
Double TotalMilliSeconds { __get; }
ReadOnly Property TotalMilliSeconds() As Double
TotalMinutes
Returns this timespan as total number of minutes.
property TotalMinutes: Double read;
Double TotalMinutes { get; }
var TotalMinutes: Double { get{} }
Double TotalMinutes { __get; }
ReadOnly Property TotalMinutes() As Double
TotalSeconds
Returns this timespan as total number of seconds.
FromDays
Create a timespan form a number of days.
Parameters:
- d:
FromHours
Create a timespan form a number of hours.
Parameters:
- d:
FromMilliseconds
Create a timespan form a number of msec.
Parameters:
- d:
FromMinutes
Create a timespan form a number of minutes.
Parameters:
- d:
FromSeconds
Create a timespan form a number of seconds.
Parameters:
- d:
FromTicks
Create a timespan form a number of ticks.
Parameters:
- d:
constructor (Int64)
Creates a timespan with the given amount of ticks.
constructor(aTicks: Int64)
TimeSpan(Int64 aTicks)
init(_ aTicks: Int64)
TimeSpan(Int64 aTicks)
Sub New(aTicks As Int64)
Parameters:
- aTicks:
Creates a timespan with the given amount of days, hours, minutes, seconds, and msec.
Parameters:
- d:
- h:
- m:
- s:
- ms:
Creates a timespan with the given amount of hours, minutes, seconds.
Parameters:
- h:
- m:
- s:
Add two timespans together, returning the new span.
Parameters:
- ts:
Negate Cooper, Island, Toffee, ToffeeV2
Negate this timespan.
method Negate: TimeSpan
TimeSpan Negate()
func Negate() -> TimeSpan
TimeSpan Negate()
Function Negate() As TimeSpan
Subtract two timespans.
Parameters:
- ts:
Parameters:
- ts:
Negate .NET, .NET Core 6.0, .NET Standard 2.0
Parameters:
- ts: