feat(third_party/git/date): add "dottime" format
Adds dottime (as defined on https://dotti.me) as a timestamp format. This format is designed to simplify working with timestamps across many different timezones by keeping the timestamp format itself in UTC (and indicating this with a dot character), but appending the local offset. This is implemented as a new format because the timestamp needs to be rendered both as UTC and including the offset, an implementation using a strftime formatting string is not sufficient.
This commit is contained in:
parent
7ef0d62730
commit
8082d87da3
5 changed files with 27 additions and 1 deletions
|
@ -866,6 +866,9 @@ omitted.
|
|||
1970). As with `--raw`, this is always in UTC and therefore `-local`
|
||||
has no effect.
|
||||
|
||||
`--date=dottime` shows the date in dottime format (rendered as UTC,
|
||||
but suffixed with the local timezone offset if given)
|
||||
|
||||
`--date=format:...` feeds the format `...` to your system `strftime`,
|
||||
except for %z and %Z, which are handled internally.
|
||||
Use `--date=format:%c` to show the date in your system locale's
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue