Global
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.time
- Platforms: .NET, .NET Standard 2.0, Island
After
class method After(d: Duration): ReceivingChannel<Time>
static ReceivingChannel<Time> After(Duration d)
static func After(_ d: Duration) -> ReceivingChannel<Time>
func After(d Duration) ReceivingChannel<Time>
Shared Function After(d As Duration) As ReceivingChannel<Time>
Parameters:
- d:
AfterFunc
class method AfterFunc(d: Duration; f: Action): Memory<Timer>
static Memory<Timer> AfterFunc(Duration d, Action f)
static func AfterFunc(_ d: Duration, _ f: Action) -> Memory<Timer>
func AfterFunc(d Duration, f Action) Memory<Timer>
Shared Function AfterFunc(d As Duration, f As Action) As Memory<Timer>
Parameters:
- d:
- f:
ANSIC
const ANSIC: String = 'Mon Jan _2 15:04:05 2006'
const String ANSIC = "Mon Jan _2 15:04:05 2006"
static let ANSIC: String = "Mon Jan _2 15:04:05 2006"
const ANSIC String = "Mon Jan _2 15:04:05 2006"
Const ANSIC As String = "Mon Jan _2 15:04:05 2006"
April
const April: Month = 4
const Month April = 4
static let April: Month = 4
const April Month = 4
Const April As Month = 4
August
const August: Month = 8
const Month August = 8
static let August: Month = 8
const August Month = 8
Const August As Month = 8
Date
class method Date(year: int; month: Month; day: int; hour: int; min: int; sec: int; nsec: int; loc: Memory<Location>): Time
static Time Date(int year, Month month, int day, int hour, int min, int sec, int nsec, Memory<Location> loc)
static func Date(_ year: int, _ month: Month, _ day: int, _ hour: int, _ min: int, _ sec: int, _ nsec: int, _ loc: Memory<Location>) -> Time
func Date(year int, month Month, day int, hour int, min int, sec int, nsec int, loc Memory<Location>) Time
Shared Function Date(year As int, month As Month, day As int, hour As int, min As int, sec As int, nsec As int, loc As Memory<Location>) As Time
Parameters:
- year:
- month:
- day:
- hour:
- min:
- sec:
- nsec:
- loc:
December
const December: Month = 12
const Month December = 12
static let December: Month = 12
const December Month = 12
Const December As Month = 12
February
const February: Month = 2
const Month February = 2
static let February: Month = 2
const February Month = 2
Const February As Month = 2
FixedZone
class method FixedZone(name: string; offset: int): Memory<Location>
static Memory<Location> FixedZone(string name, int offset)
static func FixedZone(_ name: string, _ offset: int) -> Memory<Location>
func FixedZone(name string, offset int) Memory<Location>
Shared Function FixedZone(name As string, offset As int) As Memory<Location>
Parameters:
- name:
- offset:
Friday
const Friday: Weekday = 5
const Weekday Friday = 5
static let Friday: Weekday = 5
const Friday Weekday = 5
Const Friday As Weekday = 5
Hour
const Hour: Int64 = 3600000000000
const Int64 Hour = 3600000000000
static let Hour: Int64 = 3600000000000
const Hour Int64 = 3600000000000
Const Hour As Int64 = 3600000000000
January
const January: Month = 1
const Month January = 1
static let January: Month = 1
const January Month = 1
Const January As Month = 1
July
const July: Month = 7
const Month July = 7
static let July: Month = 7
const July Month = 7
Const July As Month = 7
June
const June: Month = 6
const Month June = 6
static let June: Month = 6
const June Month = 6
Const June As Month = 6
Kitchen
const Kitchen: String = '3:04PM'
const String Kitchen = "3:04PM"
static let Kitchen: String = "3:04PM"
const Kitchen String = "3:04PM"
Const Kitchen As String = "3:04PM"
LoadLocation
class method LoadLocation(name: string): tuple of (Memory<Location>, error)
static (Memory<Location>, error) LoadLocation(string name)
static func LoadLocation(_ name: string) -> tuple of (Memory<Location>, error)
func LoadLocation(name string) tuple of (Memory<Location>, error)
Shared Function LoadLocation(name As string) As Tuple (Of Memory<Location>, error)
Parameters:
- name:
LoadLocationFromTZData
class method LoadLocationFromTZData(name: string; data: Slice<Byte>): tuple of (Memory<Location>, error)
static (Memory<Location>, error) LoadLocationFromTZData(string name, Slice<Byte> data)
static func LoadLocationFromTZData(_ name: string, _ data: Slice<Byte>) -> tuple of (Memory<Location>, error)
func LoadLocationFromTZData(name string, data Slice<Byte>) tuple of (Memory<Location>, error)
Shared Function LoadLocationFromTZData(name As string, data As Slice<Byte>) As Tuple (Of Memory<Location>, error)
Parameters:
- name:
- data:
Local
class var Local: Memory<Location>;
static Memory<Location> Local
static var Local: Memory<Location>
Local Memory<Location>
Shared FIELD Local() As Memory<Location>
March
const March: Month = 3
const Month March = 3
static let March: Month = 3
const March Month = 3
Const March As Month = 3
May
const May: Month = 5
const Month May = 5
static let May: Month = 5
const May Month = 5
Const May As Month = 5
Microsecond
const Microsecond: Int64 = 1000
const Int64 Microsecond = 1000
static let Microsecond: Int64 = 1000
const Microsecond Int64 = 1000
Const Microsecond As Int64 = 1000
Millisecond
const Millisecond: Int64 = 1000000
const Int64 Millisecond = 1000000
static let Millisecond: Int64 = 1000000
const Millisecond Int64 = 1000000
Const Millisecond As Int64 = 1000000
Minute
const Minute: Int64 = 60000000000
const Int64 Minute = 60000000000
static let Minute: Int64 = 60000000000
const Minute Int64 = 60000000000
Const Minute As Int64 = 60000000000
Monday
const Monday: Weekday = 1
const Weekday Monday = 1
static let Monday: Weekday = 1
const Monday Weekday = 1
Const Monday As Weekday = 1
Nanosecond
const Nanosecond: Duration = 1
const Duration Nanosecond = 1
static let Nanosecond: Duration = 1
const Nanosecond Duration = 1
Const Nanosecond As Duration = 1
NewTicker
class method NewTicker(d: Duration): Memory<Ticker>
static Memory<Ticker> NewTicker(Duration d)
static func NewTicker(_ d: Duration) -> Memory<Ticker>
func NewTicker(d Duration) Memory<Ticker>
Shared Function NewTicker(d As Duration) As Memory<Ticker>
Parameters:
- d:
NewTimer
class method NewTimer(d: Duration): Memory<Timer>
static Memory<Timer> NewTimer(Duration d)
static func NewTimer(_ d: Duration) -> Memory<Timer>
func NewTimer(d Duration) Memory<Timer>
Shared Function NewTimer(d As Duration) As Memory<Timer>
Parameters:
- d:
November
const November: Month = 11
const Month November = 11
static let November: Month = 11
const November Month = 11
Const November As Month = 11
Now
class method Now: Time
static Time Now()
static func Now() -> Time
func Now() Time
Shared Function Now() As Time
October
const October: Month = 10
const Month October = 10
static let October: Month = 10
const October Month = 10
Const October As Month = 10
Parse
class method Parse(layout: string; value: string): tuple of (Time, error)
static (Time, error) Parse(string layout, string value)
static func Parse(_ layout: string, _ value: string) -> tuple of (Time, error)
func Parse(layout string, value string) tuple of (Time, error)
Shared Function Parse(layout As string, value As string) As Tuple (Of Time, error)
Parameters:
- layout:
- value:
ParseDuration
class method ParseDuration(s: string): tuple of (Duration, error)
static (Duration, error) ParseDuration(string s)
static func ParseDuration(_ s: string) -> tuple of (Duration, error)
func ParseDuration(s string) tuple of (Duration, error)
Shared Function ParseDuration(s As string) As Tuple (Of Duration, error)
Parameters:
- s:
ParseInLocation
class method ParseInLocation(layout: string; value: string; loc: Memory<Location>): tuple of (Time, error)
static (Time, error) ParseInLocation(string layout, string value, Memory<Location> loc)
static func ParseInLocation(_ layout: string, _ value: string, _ loc: Memory<Location>) -> tuple of (Time, error)
func ParseInLocation(layout string, value string, loc Memory<Location>) tuple of (Time, error)
Shared Function ParseInLocation(layout As string, value As string, loc As Memory<Location>) As Tuple (Of Time, error)
Parameters:
- layout:
- value:
- loc:
RFC1123
const RFC1123: String = 'Mon, 02 Jan 2006 15:04:05 MST'
const String RFC1123 = "Mon, 02 Jan 2006 15:04:05 MST"
static let RFC1123: String = "Mon, 02 Jan 2006 15:04:05 MST"
const RFC1123 String = "Mon, 02 Jan 2006 15:04:05 MST"
Const RFC1123 As String = "Mon, 02 Jan 2006 15:04:05 MST"
RFC1123Z
const RFC1123Z: String = 'Mon, 02 Jan 2006 15:04:05 -0700'
const String RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700"
static let RFC1123Z: String = "Mon, 02 Jan 2006 15:04:05 -0700"
const RFC1123Z String = "Mon, 02 Jan 2006 15:04:05 -0700"
Const RFC1123Z As String = "Mon, 02 Jan 2006 15:04:05 -0700"
RFC3339
const RFC3339: String = '2006-01-02T15:04:05Z07:00'
const String RFC3339 = "2006-01-02T15:04:05Z07:00"
static let RFC3339: String = "2006-01-02T15:04:05Z07:00"
const RFC3339 String = "2006-01-02T15:04:05Z07:00"
Const RFC3339 As String = "2006-01-02T15:04:05Z07:00"
RFC3339Nano
const RFC3339Nano: String = '2006-01-02T15:04:05.999999999Z07:00'
const String RFC3339Nano = "2006-01-02T15:04:05.999999999Z07:00"
static let RFC3339Nano: String = "2006-01-02T15:04:05.999999999Z07:00"
const RFC3339Nano String = "2006-01-02T15:04:05.999999999Z07:00"
Const RFC3339Nano As String = "2006-01-02T15:04:05.999999999Z07:00"
RFC822
const RFC822: String = '02 Jan 06 15:04 MST'
const String RFC822 = "02 Jan 06 15:04 MST"
static let RFC822: String = "02 Jan 06 15:04 MST"
const RFC822 String = "02 Jan 06 15:04 MST"
Const RFC822 As String = "02 Jan 06 15:04 MST"
RFC822Z
const RFC822Z: String = '02 Jan 06 15:04 -0700'
const String RFC822Z = "02 Jan 06 15:04 -0700"
static let RFC822Z: String = "02 Jan 06 15:04 -0700"
const RFC822Z String = "02 Jan 06 15:04 -0700"
Const RFC822Z As String = "02 Jan 06 15:04 -0700"
RFC850
const RFC850: String = 'Monday, 02-Jan-06 15:04:05 MST'
const String RFC850 = "Monday, 02-Jan-06 15:04:05 MST"
static let RFC850: String = "Monday, 02-Jan-06 15:04:05 MST"
const RFC850 String = "Monday, 02-Jan-06 15:04:05 MST"
Const RFC850 As String = "Monday, 02-Jan-06 15:04:05 MST"
RubyDate
const RubyDate: String = 'Mon Jan 02 15:04:05 -0700 2006'
const String RubyDate = "Mon Jan 02 15:04:05 -0700 2006"
static let RubyDate: String = "Mon Jan 02 15:04:05 -0700 2006"
const RubyDate String = "Mon Jan 02 15:04:05 -0700 2006"
Const RubyDate As String = "Mon Jan 02 15:04:05 -0700 2006"
Saturday
const Saturday: Weekday = 6
const Weekday Saturday = 6
static let Saturday: Weekday = 6
const Saturday Weekday = 6
Const Saturday As Weekday = 6
Second
const Second: Int64 = 1000000000
const Int64 Second = 1000000000
static let Second: Int64 = 1000000000
const Second Int64 = 1000000000
Const Second As Int64 = 1000000000
September
const September: Month = 9
const Month September = 9
static let September: Month = 9
const September Month = 9
Const September As Month = 9
Since
class method Since(t: Time): Duration
static Duration Since(Time t)
static func Since(_ t: Time) -> Duration
func Since(t Time) Duration
Shared Function Since(t As Time) As Duration
Parameters:
- t:
Sleep
class method Sleep(x: Duration)
static void Sleep(Duration x)
static func Sleep(_ x: Duration)
// .NET, .NET Standard 2.0
func Sleep(x Duration)
// Island
func Sleep(x Duration) void
Shared Sub Sleep(x As Duration)
Parameters:
- x:
Stamp
const Stamp: String = 'Jan _2 15:04:05'
const String Stamp = "Jan _2 15:04:05"
static let Stamp: String = "Jan _2 15:04:05"
const Stamp String = "Jan _2 15:04:05"
Const Stamp As String = "Jan _2 15:04:05"
StampMicro
const StampMicro: String = 'Jan _2 15:04:05.000000'
const String StampMicro = "Jan _2 15:04:05.000000"
static let StampMicro: String = "Jan _2 15:04:05.000000"
const StampMicro String = "Jan _2 15:04:05.000000"
Const StampMicro As String = "Jan _2 15:04:05.000000"
StampMilli
const StampMilli: String = 'Jan _2 15:04:05.000'
const String StampMilli = "Jan _2 15:04:05.000"
static let StampMilli: String = "Jan _2 15:04:05.000"
const StampMilli String = "Jan _2 15:04:05.000"
Const StampMilli As String = "Jan _2 15:04:05.000"
StampNano
const StampNano: String = 'Jan _2 15:04:05.000000000'
const String StampNano = "Jan _2 15:04:05.000000000"
static let StampNano: String = "Jan _2 15:04:05.000000000"
const StampNano String = "Jan _2 15:04:05.000000000"
Const StampNano As String = "Jan _2 15:04:05.000000000"
Sunday
const Sunday: Weekday = 0
const Weekday Sunday = 0
static let Sunday: Weekday = 0
const Sunday Weekday = 0
Const Sunday As Weekday = 0
Thursday
const Thursday: Weekday = 4
const Weekday Thursday = 4
static let Thursday: Weekday = 4
const Thursday Weekday = 4
Const Thursday As Weekday = 4
Tick
class method Tick(d: Duration): ReceivingChannel<Time>
static ReceivingChannel<Time> Tick(Duration d)
static func Tick(_ d: Duration) -> ReceivingChannel<Time>
func Tick(d Duration) ReceivingChannel<Time>
Shared Function Tick(d As Duration) As ReceivingChannel<Time>
Parameters:
- d:
Tuesday
const Tuesday: Weekday = 2
const Weekday Tuesday = 2
static let Tuesday: Weekday = 2
const Tuesday Weekday = 2
Const Tuesday As Weekday = 2
Unix
class method Unix(sec: int64; nsec: int64): Time
static Time Unix(int64 sec, int64 nsec)
static func Unix(_ sec: int64, _ nsec: int64) -> Time
func Unix(sec int64, nsec int64) Time
Shared Function Unix(sec As int64, nsec As int64) As Time
Parameters:
- sec:
- nsec:
UnixDate
const UnixDate: String = 'Mon Jan _2 15:04:05 MST 2006'
const String UnixDate = "Mon Jan _2 15:04:05 MST 2006"
static let UnixDate: String = "Mon Jan _2 15:04:05 MST 2006"
const UnixDate String = "Mon Jan _2 15:04:05 MST 2006"
Const UnixDate As String = "Mon Jan _2 15:04:05 MST 2006"
Until
class method Until(t: Time): Duration
static Duration Until(Time t)
static func Until(_ t: Time) -> Duration
func Until(t Time) Duration
Shared Function Until(t As Time) As Duration
Parameters:
- t:
UTC
class var UTC: Memory<Location>;
static Memory<Location> UTC
static var UTC: Memory<Location>
UTC Memory<Location>
Shared FIELD UTC() As Memory<Location>
Wednesday
const Wednesday: Weekday = 3
const Weekday Wednesday = 3
static let Wednesday: Weekday = 3
const Wednesday Weekday = 3
Const Wednesday As Weekday = 3
ANSIC
const ANSIC: String = 'Mon Jan _2 15:04:05 2006'
const String ANSIC = "Mon Jan _2 15:04:05 2006"
static let ANSIC: String = "Mon Jan _2 15:04:05 2006"
const ANSIC String = "Mon Jan _2 15:04:05 2006"
Const ANSIC As String = "Mon Jan _2 15:04:05 2006"
April
const April: Month = 4
const Month April = 4
static let April: Month = 4
const April Month = 4
Const April As Month = 4
August
const August: Month = 8
const Month August = 8
static let August: Month = 8
const August Month = 8
Const August As Month = 8
December
const December: Month = 12
const Month December = 12
static let December: Month = 12
const December Month = 12
Const December As Month = 12
February
const February: Month = 2
const Month February = 2
static let February: Month = 2
const February Month = 2
Const February As Month = 2
Friday
const Friday: Weekday = 5
const Weekday Friday = 5
static let Friday: Weekday = 5
const Friday Weekday = 5
Const Friday As Weekday = 5
Hour
const Hour: Int64 = 3600000000000
const Int64 Hour = 3600000000000
static let Hour: Int64 = 3600000000000
const Hour Int64 = 3600000000000
Const Hour As Int64 = 3600000000000
January
const January: Month = 1
const Month January = 1
static let January: Month = 1
const January Month = 1
Const January As Month = 1
July
const July: Month = 7
const Month July = 7
static let July: Month = 7
const July Month = 7
Const July As Month = 7
June
const June: Month = 6
const Month June = 6
static let June: Month = 6
const June Month = 6
Const June As Month = 6
Kitchen
const Kitchen: String = '3:04PM'
const String Kitchen = "3:04PM"
static let Kitchen: String = "3:04PM"
const Kitchen String = "3:04PM"
Const Kitchen As String = "3:04PM"
March
const March: Month = 3
const Month March = 3
static let March: Month = 3
const March Month = 3
Const March As Month = 3
May
const May: Month = 5
const Month May = 5
static let May: Month = 5
const May Month = 5
Const May As Month = 5
Microsecond
const Microsecond: Int64 = 1000
const Int64 Microsecond = 1000
static let Microsecond: Int64 = 1000
const Microsecond Int64 = 1000
Const Microsecond As Int64 = 1000
Millisecond
const Millisecond: Int64 = 1000000
const Int64 Millisecond = 1000000
static let Millisecond: Int64 = 1000000
const Millisecond Int64 = 1000000
Const Millisecond As Int64 = 1000000
Minute
const Minute: Int64 = 60000000000
const Int64 Minute = 60000000000
static let Minute: Int64 = 60000000000
const Minute Int64 = 60000000000
Const Minute As Int64 = 60000000000
Monday
const Monday: Weekday = 1
const Weekday Monday = 1
static let Monday: Weekday = 1
const Monday Weekday = 1
Const Monday As Weekday = 1
Nanosecond
const Nanosecond: Duration = 1
const Duration Nanosecond = 1
static let Nanosecond: Duration = 1
const Nanosecond Duration = 1
Const Nanosecond As Duration = 1
November
const November: Month = 11
const Month November = 11
static let November: Month = 11
const November Month = 11
Const November As Month = 11
October
const October: Month = 10
const Month October = 10
static let October: Month = 10
const October Month = 10
Const October As Month = 10
RFC1123
const RFC1123: String = 'Mon, 02 Jan 2006 15:04:05 MST'
const String RFC1123 = "Mon, 02 Jan 2006 15:04:05 MST"
static let RFC1123: String = "Mon, 02 Jan 2006 15:04:05 MST"
const RFC1123 String = "Mon, 02 Jan 2006 15:04:05 MST"
Const RFC1123 As String = "Mon, 02 Jan 2006 15:04:05 MST"
RFC1123Z
const RFC1123Z: String = 'Mon, 02 Jan 2006 15:04:05 -0700'
const String RFC1123Z = "Mon, 02 Jan 2006 15:04:05 -0700"
static let RFC1123Z: String = "Mon, 02 Jan 2006 15:04:05 -0700"
const RFC1123Z String = "Mon, 02 Jan 2006 15:04:05 -0700"
Const RFC1123Z As String = "Mon, 02 Jan 2006 15:04:05 -0700"
RFC3339
const RFC3339: String = '2006-01-02T15:04:05Z07:00'
const String RFC3339 = "2006-01-02T15:04:05Z07:00"
static let RFC3339: String = "2006-01-02T15:04:05Z07:00"
const RFC3339 String = "2006-01-02T15:04:05Z07:00"
Const RFC3339 As String = "2006-01-02T15:04:05Z07:00"
RFC3339Nano
const RFC3339Nano: String = '2006-01-02T15:04:05.999999999Z07:00'
const String RFC3339Nano = "2006-01-02T15:04:05.999999999Z07:00"
static let RFC3339Nano: String = "2006-01-02T15:04:05.999999999Z07:00"
const RFC3339Nano String = "2006-01-02T15:04:05.999999999Z07:00"
Const RFC3339Nano As String = "2006-01-02T15:04:05.999999999Z07:00"
RFC822
const RFC822: String = '02 Jan 06 15:04 MST'
const String RFC822 = "02 Jan 06 15:04 MST"
static let RFC822: String = "02 Jan 06 15:04 MST"
const RFC822 String = "02 Jan 06 15:04 MST"
Const RFC822 As String = "02 Jan 06 15:04 MST"
RFC822Z
const RFC822Z: String = '02 Jan 06 15:04 -0700'
const String RFC822Z = "02 Jan 06 15:04 -0700"
static let RFC822Z: String = "02 Jan 06 15:04 -0700"
const RFC822Z String = "02 Jan 06 15:04 -0700"
Const RFC822Z As String = "02 Jan 06 15:04 -0700"
RFC850
const RFC850: String = 'Monday, 02-Jan-06 15:04:05 MST'
const String RFC850 = "Monday, 02-Jan-06 15:04:05 MST"
static let RFC850: String = "Monday, 02-Jan-06 15:04:05 MST"
const RFC850 String = "Monday, 02-Jan-06 15:04:05 MST"
Const RFC850 As String = "Monday, 02-Jan-06 15:04:05 MST"
RubyDate
const RubyDate: String = 'Mon Jan 02 15:04:05 -0700 2006'
const String RubyDate = "Mon Jan 02 15:04:05 -0700 2006"
static let RubyDate: String = "Mon Jan 02 15:04:05 -0700 2006"
const RubyDate String = "Mon Jan 02 15:04:05 -0700 2006"
Const RubyDate As String = "Mon Jan 02 15:04:05 -0700 2006"
Saturday
const Saturday: Weekday = 6
const Weekday Saturday = 6
static let Saturday: Weekday = 6
const Saturday Weekday = 6
Const Saturday As Weekday = 6
Second
const Second: Int64 = 1000000000
const Int64 Second = 1000000000
static let Second: Int64 = 1000000000
const Second Int64 = 1000000000
Const Second As Int64 = 1000000000
September
const September: Month = 9
const Month September = 9
static let September: Month = 9
const September Month = 9
Const September As Month = 9
Stamp
const Stamp: String = 'Jan _2 15:04:05'
const String Stamp = "Jan _2 15:04:05"
static let Stamp: String = "Jan _2 15:04:05"
const Stamp String = "Jan _2 15:04:05"
Const Stamp As String = "Jan _2 15:04:05"
StampMicro
const StampMicro: String = 'Jan _2 15:04:05.000000'
const String StampMicro = "Jan _2 15:04:05.000000"
static let StampMicro: String = "Jan _2 15:04:05.000000"
const StampMicro String = "Jan _2 15:04:05.000000"
Const StampMicro As String = "Jan _2 15:04:05.000000"
StampMilli
const StampMilli: String = 'Jan _2 15:04:05.000'
const String StampMilli = "Jan _2 15:04:05.000"
static let StampMilli: String = "Jan _2 15:04:05.000"
const StampMilli String = "Jan _2 15:04:05.000"
Const StampMilli As String = "Jan _2 15:04:05.000"
StampNano
const StampNano: String = 'Jan _2 15:04:05.000000000'
const String StampNano = "Jan _2 15:04:05.000000000"
static let StampNano: String = "Jan _2 15:04:05.000000000"
const StampNano String = "Jan _2 15:04:05.000000000"
Const StampNano As String = "Jan _2 15:04:05.000000000"
Sunday
const Sunday: Weekday = 0
const Weekday Sunday = 0
static let Sunday: Weekday = 0
const Sunday Weekday = 0
Const Sunday As Weekday = 0
Thursday
const Thursday: Weekday = 4
const Weekday Thursday = 4
static let Thursday: Weekday = 4
const Thursday Weekday = 4
Const Thursday As Weekday = 4
Tuesday
const Tuesday: Weekday = 2
const Weekday Tuesday = 2
static let Tuesday: Weekday = 2
const Tuesday Weekday = 2
Const Tuesday As Weekday = 2
UnixDate
const UnixDate: String = 'Mon Jan _2 15:04:05 MST 2006'
const String UnixDate = "Mon Jan _2 15:04:05 MST 2006"
static let UnixDate: String = "Mon Jan _2 15:04:05 MST 2006"
const UnixDate String = "Mon Jan _2 15:04:05 MST 2006"
Const UnixDate As String = "Mon Jan _2 15:04:05 MST 2006"
Wednesday
const Wednesday: Weekday = 3
const Weekday Wednesday = 3
static let Wednesday: Weekday = 3
const Wednesday Weekday = 3
Const Wednesday As Weekday = 3
Local
class var Local: Memory<Location>;
static Memory<Location> Local
static var Local: Memory<Location>
Local Memory<Location>
Shared FIELD Local() As Memory<Location>
UTC
class var UTC: Memory<Location>;
static Memory<Location> UTC
static var UTC: Memory<Location>
UTC Memory<Location>
Shared FIELD UTC() As Memory<Location>
After
class method After(d: Duration): ReceivingChannel<Time>
static ReceivingChannel<Time> After(Duration d)
static func After(_ d: Duration) -> ReceivingChannel<Time>
func After(d Duration) ReceivingChannel<Time>
Shared Function After(d As Duration) As ReceivingChannel<Time>
Parameters:
- d:
AfterFunc
class method AfterFunc(d: Duration; f: Action): Memory<Timer>
static Memory<Timer> AfterFunc(Duration d, Action f)
static func AfterFunc(_ d: Duration, _ f: Action) -> Memory<Timer>
func AfterFunc(d Duration, f Action) Memory<Timer>
Shared Function AfterFunc(d As Duration, f As Action) As Memory<Timer>
Parameters:
- d:
- f:
Date
class method Date(year: int; month: Month; day: int; hour: int; min: int; sec: int; nsec: int; loc: Memory<Location>): Time
static Time Date(int year, Month month, int day, int hour, int min, int sec, int nsec, Memory<Location> loc)
static func Date(_ year: int, _ month: Month, _ day: int, _ hour: int, _ min: int, _ sec: int, _ nsec: int, _ loc: Memory<Location>) -> Time
func Date(year int, month Month, day int, hour int, min int, sec int, nsec int, loc Memory<Location>) Time
Shared Function Date(year As int, month As Month, day As int, hour As int, min As int, sec As int, nsec As int, loc As Memory<Location>) As Time
Parameters:
- year:
- month:
- day:
- hour:
- min:
- sec:
- nsec:
- loc:
FixedZone
class method FixedZone(name: string; offset: int): Memory<Location>
static Memory<Location> FixedZone(string name, int offset)
static func FixedZone(_ name: string, _ offset: int) -> Memory<Location>
func FixedZone(name string, offset int) Memory<Location>
Shared Function FixedZone(name As string, offset As int) As Memory<Location>
Parameters:
- name:
- offset:
LoadLocation
class method LoadLocation(name: string): tuple of (Memory<Location>, error)
static (Memory<Location>, error) LoadLocation(string name)
static func LoadLocation(_ name: string) -> tuple of (Memory<Location>, error)
func LoadLocation(name string) tuple of (Memory<Location>, error)
Shared Function LoadLocation(name As string) As Tuple (Of Memory<Location>, error)
Parameters:
- name:
LoadLocationFromTZData
class method LoadLocationFromTZData(name: string; data: Slice<Byte>): tuple of (Memory<Location>, error)
static (Memory<Location>, error) LoadLocationFromTZData(string name, Slice<Byte> data)
static func LoadLocationFromTZData(_ name: string, _ data: Slice<Byte>) -> tuple of (Memory<Location>, error)
func LoadLocationFromTZData(name string, data Slice<Byte>) tuple of (Memory<Location>, error)
Shared Function LoadLocationFromTZData(name As string, data As Slice<Byte>) As Tuple (Of Memory<Location>, error)
Parameters:
- name:
- data:
NewTicker
class method NewTicker(d: Duration): Memory<Ticker>
static Memory<Ticker> NewTicker(Duration d)
static func NewTicker(_ d: Duration) -> Memory<Ticker>
func NewTicker(d Duration) Memory<Ticker>
Shared Function NewTicker(d As Duration) As Memory<Ticker>
Parameters:
- d:
NewTimer
class method NewTimer(d: Duration): Memory<Timer>
static Memory<Timer> NewTimer(Duration d)
static func NewTimer(_ d: Duration) -> Memory<Timer>
func NewTimer(d Duration) Memory<Timer>
Shared Function NewTimer(d As Duration) As Memory<Timer>
Parameters:
- d:
Now
class method Now: Time
static Time Now()
static func Now() -> Time
func Now() Time
Shared Function Now() As Time
Parse
class method Parse(layout: string; value: string): tuple of (Time, error)
static (Time, error) Parse(string layout, string value)
static func Parse(_ layout: string, _ value: string) -> tuple of (Time, error)
func Parse(layout string, value string) tuple of (Time, error)
Shared Function Parse(layout As string, value As string) As Tuple (Of Time, error)
Parameters:
- layout:
- value:
ParseDuration
class method ParseDuration(s: string): tuple of (Duration, error)
static (Duration, error) ParseDuration(string s)
static func ParseDuration(_ s: string) -> tuple of (Duration, error)
func ParseDuration(s string) tuple of (Duration, error)
Shared Function ParseDuration(s As string) As Tuple (Of Duration, error)
Parameters:
- s:
ParseInLocation
class method ParseInLocation(layout: string; value: string; loc: Memory<Location>): tuple of (Time, error)
static (Time, error) ParseInLocation(string layout, string value, Memory<Location> loc)
static func ParseInLocation(_ layout: string, _ value: string, _ loc: Memory<Location>) -> tuple of (Time, error)
func ParseInLocation(layout string, value string, loc Memory<Location>) tuple of (Time, error)
Shared Function ParseInLocation(layout As string, value As string, loc As Memory<Location>) As Tuple (Of Time, error)
Parameters:
- layout:
- value:
- loc:
Since
class method Since(t: Time): Duration
static Duration Since(Time t)
static func Since(_ t: Time) -> Duration
func Since(t Time) Duration
Shared Function Since(t As Time) As Duration
Parameters:
- t:
Sleep
class method Sleep(x: Duration)
static void Sleep(Duration x)
static func Sleep(_ x: Duration)
// .NET, .NET Standard 2.0
func Sleep(x Duration)
// Island
func Sleep(x Duration) void
Shared Sub Sleep(x As Duration)
Parameters:
- x:
Tick
class method Tick(d: Duration): ReceivingChannel<Time>
static ReceivingChannel<Time> Tick(Duration d)
static func Tick(_ d: Duration) -> ReceivingChannel<Time>
func Tick(d Duration) ReceivingChannel<Time>
Shared Function Tick(d As Duration) As ReceivingChannel<Time>
Parameters:
- d:
Unix
class method Unix(sec: int64; nsec: int64): Time
static Time Unix(int64 sec, int64 nsec)
static func Unix(_ sec: int64, _ nsec: int64) -> Time
func Unix(sec int64, nsec int64) Time
Shared Function Unix(sec As int64, nsec As int64) As Time
Parameters:
- sec:
- nsec:
Until
class method Until(t: Time): Duration
static Duration Until(Time t)
static func Until(_ t: Time) -> Duration
func Until(t Time) Duration
Shared Function Until(t As Time) As Duration
Parameters:
- t: