Skip to content

Commit 84b3c6b

Browse files
authored
Fix time format for TAI Timestamps (#44)
In the documentation, `X` / `x` was used for both, 'UTC' timestamp and 'TAI' timestamp. However, according to the code, `XT` / `xt` must be used to format a time as TAI timestamp: https://github.com/kshetline/tubular_time/blob/8341db46c34c7d067b8accf560d19532fd2f3268/src/format-parse.ts#L497
1 parent 8341db4 commit 84b3c6b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,8 @@ For example:
266266
| Unix millisecond timestamp, UTC | x | 1360013296123 |
267267
| Unix timestamp, epoch | XX | 1360013296 |
268268
| Unix millisecond timestamp, epoch | xx | 1360013296123 |
269-
| Unix timestamp, TAI | X | 1360013331 |
270-
| Unix millisecond timestamp, TAI | x | 1360013331123 |
269+
| Unix timestamp, TAI | XT | 1360013331 |
270+
| Unix millisecond timestamp, TAI | xt | 1360013331123 |
271271
| Daylight Saving Time indicator | V | § # ^ ~ ❄<br><br>Symbol indicating DST is in effect.<br>This is typically §, meaning the clock has been turned forward one hour.<br># means two hours forward, ^ means half an hour, ~ is any other forward amount.<br>❄ is negative DST, i.e. “Winter Time”.<br>Renders one blank space when DST is not in effect. |
272272
| | v | Same as above, but no blank space when DST is not in effect. |
273273
| Occurrence indicator | R | 1:00 , 1:01 ... 1:58 , 1:59 , 1:00₂, 1:01₂ ... 1:58₂, 1:59₂, 2:00 , 2:01<br><br>A subscript 2 (₂) that denotes the second occurrence of the same clock time during a day when clocks are turned back for Daylight Saving Time. |

0 commit comments

Comments
 (0)