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)

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)

Parameters:

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

constructor (Int64)

 

constructor(aTicks: Int64)

 

TimeSpan(Int64 aTicks)

 

init(_ aTicks: Int64)

 

TimeSpan(Int64 aTicks)

Parameters:

  • aTicks:

Add  mapped

 

method Add(ts: TimeSpan): TimeSpan

 

TimeSpan Add(TimeSpan ts)

 

func Add(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Add(TimeSpan ts)

Parameters:

  • ts:

Days

 

property Days: Int32 read;

 

Int32 Days { get; }

 

var Days: Int32 { get{} }

 

Int32 Days { __get; }

FromDays

 

class method FromDays(d: Double): TimeSpan

 

static TimeSpan FromDays(Double d)

 

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

 

static TimeSpan FromDays(Double d)

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)

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)

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)

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)

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)

Parameters:

  • d:

Hours

 

property Hours: Int32 read;

 

Int32 Hours { get; }

 

var Hours: Int32 { get{} }

 

Int32 Hours { __get; }

Milliseconds

 

property Milliseconds: Int32 read;

 

Int32 Milliseconds { get; }

 

var Milliseconds: Int32 { get{} }

 

Int32 Milliseconds { __get; }

Minutes

 

property Minutes: Int32 read;

 

Int32 Minutes { get; }

 

var Minutes: Int32 { get{} }

 

Int32 Minutes { __get; }

Negate  mapped

 

method Negate: TimeSpan

 

TimeSpan Negate()

 

func Negate() -> TimeSpan

 

TimeSpan Negate()

Seconds

 

property Seconds: Int32 read;

 

Int32 Seconds { get; }

 

var Seconds: Int32 { get{} }

 

Int32 Seconds { __get; }

Subtract  mapped

 

method Subtract(ts: TimeSpan): TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

 

func Subtract(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

Parameters:

  • ts:

Ticks

 

property Ticks: Int64 read;

 

Int64 Ticks { get; }

 

var Ticks: Int64 { get{} }

 

Int64 Ticks { __get; }

TicksPerDay

 

const TicksPerDay: Int64;

 

const Int64 TicksPerDay

 

static let TicksPerDay: Int64

 

static final Int64 TicksPerDay

TicksPerHour

 

const TicksPerHour: Int64;

 

const Int64 TicksPerHour

 

static let TicksPerHour: Int64

 

static final Int64 TicksPerHour

TicksPerMillisecond

 

const TicksPerMillisecond: Int64;

 

const Int64 TicksPerMillisecond

 

static let TicksPerMillisecond: Int64

 

static final Int64 TicksPerMillisecond

TicksPerMinute

 

const TicksPerMinute: Int64;

 

const Int64 TicksPerMinute

 

static let TicksPerMinute: Int64

 

static final Int64 TicksPerMinute

TicksPerSecond

 

const TicksPerSecond: Int64;

 

const Int64 TicksPerSecond

 

static let TicksPerSecond: Int64

 

static final Int64 TicksPerSecond

TotalDays

 

property TotalDays: Double read;

 

Double TotalDays { get; }

 

var TotalDays: Double { get{} }

 

Double TotalDays { __get; }

TotalHours

 

property TotalHours: Double read;

 

Double TotalHours { get; }

 

var TotalHours: Double { get{} }

 

Double TotalHours { __get; }

TotalMilliSeconds

 

property TotalMilliSeconds: Double read;

 

Double TotalMilliSeconds { get; }

 

var TotalMilliSeconds: Double { get{} }

 

Double TotalMilliSeconds { __get; }

TotalMinutes

 

property TotalMinutes: Double read;

 

Double TotalMinutes { get; }

 

var TotalMinutes: Double { get{} }

 

Double TotalMinutes { __get; }

TotalSeconds

 

property TotalSeconds: Double read;

 

Double TotalSeconds { get; }

 

var TotalSeconds: Double { get{} }

 

Double TotalSeconds { __get; }

 

TicksPerDay

 

const TicksPerDay: Int64;

 

const Int64 TicksPerDay

 

static let TicksPerDay: Int64

 

static final Int64 TicksPerDay

TicksPerHour

 

const TicksPerHour: Int64;

 

const Int64 TicksPerHour

 

static let TicksPerHour: Int64

 

static final Int64 TicksPerHour

TicksPerMillisecond

 

const TicksPerMillisecond: Int64;

 

const Int64 TicksPerMillisecond

 

static let TicksPerMillisecond: Int64

 

static final Int64 TicksPerMillisecond

TicksPerMinute

 

const TicksPerMinute: Int64;

 

const Int64 TicksPerMinute

 

static let TicksPerMinute: Int64

 

static final Int64 TicksPerMinute

TicksPerSecond

 

const TicksPerSecond: Int64;

 

const Int64 TicksPerSecond

 

static let TicksPerSecond: Int64

 

static final Int64 TicksPerSecond

 

Days

 

property Days: Int32 read;

 

Int32 Days { get; }

 

var Days: Int32 { get{} }

 

Int32 Days { __get; }

Hours

 

property Hours: Int32 read;

 

Int32 Hours { get; }

 

var Hours: Int32 { get{} }

 

Int32 Hours { __get; }

Milliseconds

 

property Milliseconds: Int32 read;

 

Int32 Milliseconds { get; }

 

var Milliseconds: Int32 { get{} }

 

Int32 Milliseconds { __get; }

Minutes

 

property Minutes: Int32 read;

 

Int32 Minutes { get; }

 

var Minutes: Int32 { get{} }

 

Int32 Minutes { __get; }

Seconds

 

property Seconds: Int32 read;

 

Int32 Seconds { get; }

 

var Seconds: Int32 { get{} }

 

Int32 Seconds { __get; }

Ticks

 

property Ticks: Int64 read;

 

Int64 Ticks { get; }

 

var Ticks: Int64 { get{} }

 

Int64 Ticks { __get; }

TotalDays

 

property TotalDays: Double read;

 

Double TotalDays { get; }

 

var TotalDays: Double { get{} }

 

Double TotalDays { __get; }

TotalHours

 

property TotalHours: Double read;

 

Double TotalHours { get; }

 

var TotalHours: Double { get{} }

 

Double TotalHours { __get; }

TotalMilliSeconds

 

property TotalMilliSeconds: Double read;

 

Double TotalMilliSeconds { get; }

 

var TotalMilliSeconds: Double { get{} }

 

Double TotalMilliSeconds { __get; }

TotalMinutes

 

property TotalMinutes: Double read;

 

Double TotalMinutes { get; }

 

var TotalMinutes: Double { get{} }

 

Double TotalMinutes { __get; }

TotalSeconds

 

property TotalSeconds: Double read;

 

Double TotalSeconds { get; }

 

var TotalSeconds: Double { get{} }

 

Double TotalSeconds { __get; }

 

FromDays

 

class method FromDays(d: Double): TimeSpan

 

static TimeSpan FromDays(Double d)

 

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

 

static TimeSpan FromDays(Double d)

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)

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)

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)

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)

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)

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)

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)

Parameters:

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

constructor (Int64)

 

constructor(aTicks: Int64)

 

TimeSpan(Int64 aTicks)

 

init(_ aTicks: Int64)

 

TimeSpan(Int64 aTicks)

Parameters:

  • aTicks:

Add  mapped

 

method Add(ts: TimeSpan): TimeSpan

 

TimeSpan Add(TimeSpan ts)

 

func Add(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Add(TimeSpan ts)

Parameters:

  • ts:

Negate  mapped

 

method Negate: TimeSpan

 

TimeSpan Negate()

 

func Negate() -> TimeSpan

 

TimeSpan Negate()

Subtract  mapped

 

method Subtract(ts: TimeSpan): TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

 

func Subtract(_ ts: TimeSpan) -> TimeSpan

 

TimeSpan Subtract(TimeSpan ts)

Parameters:

  • ts: