Member group
ToString
Declaring type: LocalDateTime
Module: System.Time
Assembly: System.Runtime.dll
Source file: LocalDateTime.rvn
Overloads / Variants
ToString
func ToString(culture: Culture) -> string
Source file: LocalDateTime.rvn
Formats the civil date and time using an explicit culture.
Parameters
| Name | Type | Description |
|---|---|---|
culture |
Culture |
Return value
ToString
func ToString(format: string, culture: Culture) -> string
Source file: LocalDateTime.rvn
Implements Formattable.ToString
Formats with an explicit culture; unsupported specifiers fault. O/o is invariant.
Parameters
| Name | Type | Description |
|---|---|---|
format |
String | |
culture |
Culture |
Return value
ToString
func ToString(format: string) -> string
Source file: LocalDateTime.rvn
Formats with Culture.Current; supported formats are documented by DateTimeFormat.FormatLocalDateTime.
Parameters
| Name | Type | Description |
|---|---|---|
format |
String |
Return value
ToString
virtual override func ToString() -> string
Source file: LocalDateTime.rvn
Overrides Object.ToString
Formats the civil date and time using Culture.Current, without an offset or zone.