TimeSpan

Overview

Location

  • Reference: Sugar
  • Namespace: Sugar
  • Ancestry: ValueType | TimeSpan

 

constructor (Int32, Int32, Int32)

 

constructor(h: Int32; m: Int32; s: Int32)

 

TimeSpan(Int32 h, Int32 m, Int32 s)

 

init(_ h: Int32, _ m: Int32, _ s: Int32)

 

TimeSpan(Int32 h, Int32 m, Int32 s)

 

Sub New(h As Int32, m As Int32, s As Int32)

Parameters:

  • h:
  • m:
  • s:

constructor (Int32, Int32, Int32, Int32, Int32)

 

constructor(d: Int32; h: Int32; m: Int32; s: Int32; ms: Int32)

 

TimeSpan(Int32 d, Int32 h, Int32 m, Int32 s, Int32 ms)

 

init(_ d: Int32, _ h: Int32, _ m: Int32, _ s: Int32, _ ms: Int32)

 

TimeSpan(Int32 d, Int32 h, Int32 m, Int32 s, Int32 ms)

 

Sub New(d As Int32, h As Int32, m As Int32, s As Int32, ms As Int32)

Parameters:

  • d:
  • h:
  • m:
  • s:
  • ms:

constructor (Int64)

 

constructor(aTicks: Int64)

 

TimeSpan(Int64 aTicks)

 

init(_ aTicks: Int64)

 

TimeSpan(Int64 aTicks)

 

Sub New(aTicks As Int64)

Parameters:

  • aTicks:

Add  mapped

 

method Add(ts: TimeSpan): TimeSpan

 

TimeSpan Add(TimeSpan ts)

 

func Add(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Add(TimeSpan ts)

 

Function Add(ts As TimeSpan) As TimeSpan

Parameters:

  • ts:

Days

 

property Days: Int32 read;

 

Int32 Days { get; }

 

var Days: Int32 { get{} }

 

Int32 Days { __get; }

 

ReadOnly Property Days() As Int32

FromDays

 

class method FromDays(d: Double): TimeSpan

 

static TimeSpan FromDays(Double d)

 

static func FromDays(_ d: Double) -> TimeSpan

 

static TimeSpan FromDays(Double d)

 

Shared Function FromDays(d As Double) As TimeSpan

Parameters:

  • d:

FromHours

 

class method FromHours(d: Double): TimeSpan

 

static TimeSpan FromHours(Double d)

 

static func FromHours(_ d: Double) -> TimeSpan

 

static TimeSpan FromHours(Double d)

 

Shared Function FromHours(d As Double) As TimeSpan

Parameters:

  • d:

FromMilliseconds

 

class method FromMilliseconds(d: Double): TimeSpan

 

static TimeSpan FromMilliseconds(Double d)

 

static func FromMilliseconds(_ d: Double) -> TimeSpan

 

static TimeSpan FromMilliseconds(Double d)

 

Shared Function FromMilliseconds(d As Double) As TimeSpan

Parameters:

  • d:

FromMinutes

 

class method FromMinutes(d: Double): TimeSpan

 

static TimeSpan FromMinutes(Double d)

 

static func FromMinutes(_ d: Double) -> TimeSpan

 

static TimeSpan FromMinutes(Double d)

 

Shared Function FromMinutes(d As Double) As TimeSpan

Parameters:

  • d:

FromSeconds

 

class method FromSeconds(d: Double): TimeSpan

 

static TimeSpan FromSeconds(Double d)

 

static func FromSeconds(_ d: Double) -> TimeSpan

 

static TimeSpan FromSeconds(Double d)

 

Shared Function FromSeconds(d As Double) As TimeSpan

Parameters:

  • d:

FromTicks

 

class method FromTicks(d: Int64): TimeSpan

 

static TimeSpan FromTicks(Int64 d)

 

static func FromTicks(_ d: Int64) -> TimeSpan

 

static TimeSpan FromTicks(Int64 d)

 

Shared Function FromTicks(d As Int64) As TimeSpan

Parameters:

  • d:

Hours

 

property Hours: Int32 read;

 

Int32 Hours { get; }

 

var Hours: Int32 { get{} }

 

Int32 Hours { __get; }

 

ReadOnly Property Hours() As Int32

Milliseconds

 

property Milliseconds: Int32 read;

 

Int32 Milliseconds { get; }

 

var Milliseconds: Int32 { get{} }

 

Int32 Milliseconds { __get; }

 

ReadOnly Property Milliseconds() As Int32

Minutes

 

property Minutes: Int32 read;

 

Int32 Minutes { get; }

 

var Minutes: Int32 { get{} }

 

Int32 Minutes { __get; }

 

ReadOnly Property Minutes() As Int32

Negate  mapped

 

method Negate: TimeSpan

 

TimeSpan Negate()

 

func Negate() -> TimeSpan

 

TimeSpan Negate()

 

Function Negate() As TimeSpan

Seconds

 

property Seconds: Int32 read;

 

Int32 Seconds { get; }

 

var Seconds: Int32 { get{} }

 

Int32 Seconds { __get; }

 

ReadOnly Property Seconds() As Int32

Subtract  mapped

 

method Subtract(ts: TimeSpan): TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

 

func Subtract(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

 

Function Subtract(ts As TimeSpan) As TimeSpan

Parameters:

  • ts:

Ticks

 

property Ticks: Int64 read;

 

Int64 Ticks { get; }

 

var Ticks: Int64 { get{} }

 

Int64 Ticks { __get; }

 

ReadOnly Property Ticks() As Int64

TicksPerDay

 

const TicksPerDay: Int64;

 

const Int64 TicksPerDay

 

static let TicksPerDay: Int64

 

static final Int64 TicksPerDay

 

Dim TicksPerDay As Int64

TicksPerHour

 

const TicksPerHour: Int64;

 

const Int64 TicksPerHour

 

static let TicksPerHour: Int64

 

static final Int64 TicksPerHour

 

Dim TicksPerHour As Int64

TicksPerMillisecond

 

const TicksPerMillisecond: Int64;

 

const Int64 TicksPerMillisecond

 

static let TicksPerMillisecond: Int64

 

static final Int64 TicksPerMillisecond

 

Dim TicksPerMillisecond As Int64

TicksPerMinute

 

const TicksPerMinute: Int64;

 

const Int64 TicksPerMinute

 

static let TicksPerMinute: Int64

 

static final Int64 TicksPerMinute

 

Dim TicksPerMinute As Int64

TicksPerSecond

 

const TicksPerSecond: Int64;

 

const Int64 TicksPerSecond

 

static let TicksPerSecond: Int64

 

static final Int64 TicksPerSecond

 

Dim TicksPerSecond As Int64

TotalDays

 

property TotalDays: Double read;

 

Double TotalDays { get; }

 

var TotalDays: Double { get{} }

 

Double TotalDays { __get; }

 

ReadOnly Property TotalDays() As Double

TotalHours

 

property TotalHours: Double read;

 

Double TotalHours { get; }

 

var TotalHours: Double { get{} }

 

Double TotalHours { __get; }

 

ReadOnly Property TotalHours() As Double

TotalMilliSeconds

 

property TotalMilliSeconds: Double read;

 

Double TotalMilliSeconds { get; }

 

var TotalMilliSeconds: Double { get{} }

 

Double TotalMilliSeconds { __get; }

 

ReadOnly Property TotalMilliSeconds() As Double

TotalMinutes

 

property TotalMinutes: Double read;

 

Double TotalMinutes { get; }

 

var TotalMinutes: Double { get{} }

 

Double TotalMinutes { __get; }

 

ReadOnly Property TotalMinutes() As Double

TotalSeconds

 

property TotalSeconds: Double read;

 

Double TotalSeconds { get; }

 

var TotalSeconds: Double { get{} }

 

Double TotalSeconds { __get; }

 

ReadOnly Property TotalSeconds() As Double

 

TicksPerDay

 

const TicksPerDay: Int64;

 

const Int64 TicksPerDay

 

static let TicksPerDay: Int64

 

static final Int64 TicksPerDay

 

Dim TicksPerDay As Int64

TicksPerHour

 

const TicksPerHour: Int64;

 

const Int64 TicksPerHour

 

static let TicksPerHour: Int64

 

static final Int64 TicksPerHour

 

Dim TicksPerHour As Int64

TicksPerMillisecond

 

const TicksPerMillisecond: Int64;

 

const Int64 TicksPerMillisecond

 

static let TicksPerMillisecond: Int64

 

static final Int64 TicksPerMillisecond

 

Dim TicksPerMillisecond As Int64

TicksPerMinute

 

const TicksPerMinute: Int64;

 

const Int64 TicksPerMinute

 

static let TicksPerMinute: Int64

 

static final Int64 TicksPerMinute

 

Dim TicksPerMinute As Int64

TicksPerSecond

 

const TicksPerSecond: Int64;

 

const Int64 TicksPerSecond

 

static let TicksPerSecond: Int64

 

static final Int64 TicksPerSecond

 

Dim TicksPerSecond As Int64

 

Days

 

property Days: Int32 read;

 

Int32 Days { get; }

 

var Days: Int32 { get{} }

 

Int32 Days { __get; }

 

ReadOnly Property Days() As Int32

Hours

 

property Hours: Int32 read;

 

Int32 Hours { get; }

 

var Hours: Int32 { get{} }

 

Int32 Hours { __get; }

 

ReadOnly Property Hours() As Int32

Milliseconds

 

property Milliseconds: Int32 read;

 

Int32 Milliseconds { get; }

 

var Milliseconds: Int32 { get{} }

 

Int32 Milliseconds { __get; }

 

ReadOnly Property Milliseconds() As Int32

Minutes

 

property Minutes: Int32 read;

 

Int32 Minutes { get; }

 

var Minutes: Int32 { get{} }

 

Int32 Minutes { __get; }

 

ReadOnly Property Minutes() As Int32

Seconds

 

property Seconds: Int32 read;

 

Int32 Seconds { get; }

 

var Seconds: Int32 { get{} }

 

Int32 Seconds { __get; }

 

ReadOnly Property Seconds() As Int32

Ticks

 

property Ticks: Int64 read;

 

Int64 Ticks { get; }

 

var Ticks: Int64 { get{} }

 

Int64 Ticks { __get; }

 

ReadOnly Property Ticks() As Int64

TotalDays

 

property TotalDays: Double read;

 

Double TotalDays { get; }

 

var TotalDays: Double { get{} }

 

Double TotalDays { __get; }

 

ReadOnly Property TotalDays() As Double

TotalHours

 

property TotalHours: Double read;

 

Double TotalHours { get; }

 

var TotalHours: Double { get{} }

 

Double TotalHours { __get; }

 

ReadOnly Property TotalHours() As Double

TotalMilliSeconds

 

property TotalMilliSeconds: Double read;

 

Double TotalMilliSeconds { get; }

 

var TotalMilliSeconds: Double { get{} }

 

Double TotalMilliSeconds { __get; }

 

ReadOnly Property TotalMilliSeconds() As Double

TotalMinutes

 

property TotalMinutes: Double read;

 

Double TotalMinutes { get; }

 

var TotalMinutes: Double { get{} }

 

Double TotalMinutes { __get; }

 

ReadOnly Property TotalMinutes() As Double

TotalSeconds

 

property TotalSeconds: Double read;

 

Double TotalSeconds { get; }

 

var TotalSeconds: Double { get{} }

 

Double TotalSeconds { __get; }

 

ReadOnly Property TotalSeconds() As Double

 

FromDays

 

class method FromDays(d: Double): TimeSpan

 

static TimeSpan FromDays(Double d)

 

static func FromDays(_ d: Double) -> TimeSpan

 

static TimeSpan FromDays(Double d)

 

Shared Function FromDays(d As Double) As TimeSpan

Parameters:

  • d:

FromHours

 

class method FromHours(d: Double): TimeSpan

 

static TimeSpan FromHours(Double d)

 

static func FromHours(_ d: Double) -> TimeSpan

 

static TimeSpan FromHours(Double d)

 

Shared Function FromHours(d As Double) As TimeSpan

Parameters:

  • d:

FromMilliseconds

 

class method FromMilliseconds(d: Double): TimeSpan

 

static TimeSpan FromMilliseconds(Double d)

 

static func FromMilliseconds(_ d: Double) -> TimeSpan

 

static TimeSpan FromMilliseconds(Double d)

 

Shared Function FromMilliseconds(d As Double) As TimeSpan

Parameters:

  • d:

FromMinutes

 

class method FromMinutes(d: Double): TimeSpan

 

static TimeSpan FromMinutes(Double d)

 

static func FromMinutes(_ d: Double) -> TimeSpan

 

static TimeSpan FromMinutes(Double d)

 

Shared Function FromMinutes(d As Double) As TimeSpan

Parameters:

  • d:

FromSeconds

 

class method FromSeconds(d: Double): TimeSpan

 

static TimeSpan FromSeconds(Double d)

 

static func FromSeconds(_ d: Double) -> TimeSpan

 

static TimeSpan FromSeconds(Double d)

 

Shared Function FromSeconds(d As Double) As TimeSpan

Parameters:

  • d:

FromTicks

 

class method FromTicks(d: Int64): TimeSpan

 

static TimeSpan FromTicks(Int64 d)

 

static func FromTicks(_ d: Int64) -> TimeSpan

 

static TimeSpan FromTicks(Int64 d)

 

Shared Function FromTicks(d As Int64) As TimeSpan

Parameters:

  • d:

 

constructor (Int32, Int32, Int32)

 

constructor(h: Int32; m: Int32; s: Int32)

 

TimeSpan(Int32 h, Int32 m, Int32 s)

 

init(_ h: Int32, _ m: Int32, _ s: Int32)

 

TimeSpan(Int32 h, Int32 m, Int32 s)

 

Sub New(h As Int32, m As Int32, s As Int32)

Parameters:

  • h:
  • m:
  • s:

constructor (Int32, Int32, Int32, Int32, Int32)

 

constructor(d: Int32; h: Int32; m: Int32; s: Int32; ms: Int32)

 

TimeSpan(Int32 d, Int32 h, Int32 m, Int32 s, Int32 ms)

 

init(_ d: Int32, _ h: Int32, _ m: Int32, _ s: Int32, _ ms: Int32)

 

TimeSpan(Int32 d, Int32 h, Int32 m, Int32 s, Int32 ms)

 

Sub New(d As Int32, h As Int32, m As Int32, s As Int32, ms As Int32)

Parameters:

  • d:
  • h:
  • m:
  • s:
  • ms:

constructor (Int64)

 

constructor(aTicks: Int64)

 

TimeSpan(Int64 aTicks)

 

init(_ aTicks: Int64)

 

TimeSpan(Int64 aTicks)

 

Sub New(aTicks As Int64)

Parameters:

  • aTicks:

Add  mapped

 

method Add(ts: TimeSpan): TimeSpan

 

TimeSpan Add(TimeSpan ts)

 

func Add(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Add(TimeSpan ts)

 

Function Add(ts As TimeSpan) As TimeSpan

Parameters:

  • ts:

Negate  mapped

 

method Negate: TimeSpan

 

TimeSpan Negate()

 

func Negate() -> TimeSpan

 

TimeSpan Negate()

 

Function Negate() As TimeSpan

Subtract  mapped

 

method Subtract(ts: TimeSpan): TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

 

func Subtract(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

 

Function Subtract(ts As TimeSpan) As TimeSpan

Parameters:

  • ts: