Mercurial > hg
comparison mercurial/helptext/dates.txt @ 43632:2e017696181f
help: create packages for the help text
These files need to be loaded as resources with PyOxidizer, instead of using
filesystem representations. AFAICT, the resource loading mechanisms only work
for the named package given to it, and can't reach into a subdirectory.
While here, the `help` directory is renamed to `helptext`. Without this, trying
to load external help text crashed in mercurial/help.py when importing `.i18n`,
saying there's no `mercurial.help.i18n` module.
Differential Revision: https://phab.mercurial-scm.org/D7376
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 13 Nov 2019 21:52:25 -0500 |
parents | mercurial/help/dates.txt@7bec3f697d76 |
children | d010adc483cc |
comparison
equal
deleted
inserted
replaced
43631:d3c4368099ed | 43632:2e017696181f |
---|---|
1 Some commands allow the user to specify a date, e.g.: | |
2 | |
3 - backout, commit, import, tag: Specify the commit date. | |
4 - log, revert, update: Select revision(s) by date. | |
5 | |
6 Many date formats are valid. Here are some examples: | |
7 | |
8 - ``Wed Dec 6 13:18:29 2006`` (local timezone assumed) | |
9 - ``Dec 6 13:18 -0600`` (year assumed, time offset provided) | |
10 - ``Dec 6 13:18 UTC`` (UTC and GMT are aliases for +0000) | |
11 - ``Dec 6`` (midnight) | |
12 - ``13:18`` (today assumed) | |
13 - ``3:39`` (3:39AM assumed) | |
14 - ``3:39pm`` (15:39) | |
15 - ``2006-12-06 13:18:29`` (ISO 8601 format) | |
16 - ``2006-12-6 13:18`` | |
17 - ``2006-12-6`` | |
18 - ``12-6`` | |
19 - ``12/6`` | |
20 - ``12/6/6`` (Dec 6 2006) | |
21 - ``today`` (midnight) | |
22 - ``yesterday`` (midnight) | |
23 - ``now`` - right now | |
24 | |
25 Lastly, there is Mercurial's internal format: | |
26 | |
27 - ``1165411109 0`` (Wed Dec 6 13:18:29 2006 UTC) | |
28 | |
29 This is the internal representation format for dates. The first number | |
30 is the number of seconds since the epoch (1970-01-01 00:00 UTC). The | |
31 second is the offset of the local timezone, in seconds west of UTC | |
32 (negative if the timezone is east of UTC). | |
33 | |
34 The log command also accepts date ranges: | |
35 | |
36 - ``<DATE`` - at or before a given date/time | |
37 - ``>DATE`` - on or after a given date/time | |
38 - ``DATE to DATE`` - a date range, inclusive | |
39 - ``-DAYS`` - within a given number of days of today |