@@ -78,7 +78,7 @@ pub fn now_adjusted(by duration: Duration) -> DateTime {
78
78
/// ## Example
79
79
///
80
80
/// ```gleam
81
- /// tempo.format_utc(tempo.ISO8601 )
81
+ /// tempo.format_utc(tempo.ISO8601Seconds )
82
82
/// // -> "2024-12-26T16:32:34Z"
83
83
/// ```
84
84
pub fn format_utc ( in format : DateTimeFormat ) -> String {
@@ -90,7 +90,7 @@ pub fn format_utc(in format: DateTimeFormat) -> String {
90
90
/// ## Example
91
91
///
92
92
/// ```gleam
93
- /// tempo.format_local(tempo.ISO8601 )
93
+ /// tempo.format_local(tempo.ISO8601Seconds )
94
94
/// // -> "2024-12-26T12:32:34-04:00"
95
95
/// ```
96
96
pub fn format_local ( in format : DateTimeFormat ) -> String {
@@ -2884,11 +2884,11 @@ pub type Locale
2884
2884
@ internal
2885
2885
pub fn get_datetime_format_str ( format : DateTimeFormat ) {
2886
2886
case format {
2887
- ISO8601Seconds -> "YYYY/MM/ DDTHH:mm:ssZ"
2888
- ISO8601Milli -> "YYYY/MM/ DDTHH:mm:ss.SSSZ"
2889
- ISO8601Micro -> "YYYY/MM/ DDTHH:mm:ss.SSSSZ"
2887
+ ISO8601Seconds -> "YYYY-MM- DDTHH:mm:ssZ"
2888
+ ISO8601Milli -> "YYYY-MM- DDTHH:mm:ss.SSSZ"
2889
+ ISO8601Micro -> "YYYY-MM- DDTHH:mm:ss.SSSSZ"
2890
2890
HTTP -> "ddd, DD MMM YYYY HH:mm:ss [GMT]"
2891
- DateFormat ( ISO8601Date ) -> "YYYY/MM/ DD"
2891
+ DateFormat ( ISO8601Date ) -> "YYYY-MM- DD"
2892
2892
TimeFormat ( ISO8601Time ) -> "HH:mm:ssZ"
2893
2893
TimeFormat ( ISO8601TimeMilli ) -> "HH:mm:ss.SSSZ"
2894
2894
TimeFormat ( ISO8601TimeMicro ) -> "HH:mm:ss.SSSSZ"
0 commit comments