Help: dates

Date Formats

Some commands allow the user to specify a date, e.g.:

  • backout, commit, import, tag: Specify the commit date.
  • log, revert, update: Select revision(s) by date.

Many date formats are valid. Here are some examples:

  • "Wed Dec 6 13:18:29 2006" (local timezone assumed)
  • "Dec 6 13:18 -0600" (year assumed, time offset provided)
  • "Dec 6 13:18 UTC" (UTC and GMT are aliases for +0000)
  • "Dec 6" (midnight)
  • "13:18" (today assumed)
  • "3:39" (3:39AM assumed)
  • "3:39pm" (15:39)
  • "2006-12-06 13:18:29" (ISO 8601 format)
  • "2006-12-6 13:18"
  • "2006-12-6"
  • "12-6"
  • "12/6"
  • "12/6/6" (Dec 6 2006)
  • "today" (midnight)
  • "yesterday" (midnight)
  • "now" - right now

Lastly, there is Mercurial's internal format:

  • "1165411109 0" (Wed Dec 6 13:18:29 2006 UTC)

This is the internal representation format for dates. The first number is the number of seconds since the epoch (1970-01-01 00:00 UTC). The second is the offset of the local timezone, in seconds west of UTC (negative if the timezone is east of UTC).

The log command also accepts date ranges:

  • "<DATE" - at or before a given date/time
  • ">DATE" - on or after a given date/time
  • "DATE to DATE" - a date range, inclusive
  • "-DAYS" - within a given number of days from today
PKERʸH|. bcftools_mpileup-0dbff46d5a1b/.hg_archival.txtUT@`PKERн' bcftools_mpileup-0dbff46d5a1b/README.mdUT@`PKERch2 bcftools_mpileup-0dbff46d5a1b/bcftools_mpileup.xmlUT@`PKERq/e( bcftools_mpileup-0dbff46d5a1b/macros.xmlUT@`PKER2 8bcftools_mpileup-0dbff46d5a1b/test-data/23andme.faUT@`PKER<+w4 8bcftools_mpileup-0dbff46d5a1b/test-data/annotate.hdrUT@`PKER 4 9bcftools_mpileup-0dbff46d5a1b/test-data/annotate.tabUT@`PKER 6$Y 4 +;bcftools_mpileup-0dbff46d5a1b/test-data/annotate.vcfUT@`PKER!a1R5 d?bcftools_mpileup-0dbff46d5a1b/test-data/annotate2.tabUT@`PKER2*[5 @bcftools_mpileup-0dbff46d5a1b/test-data/annotate2.vcfUT@`PKER*5 Bbcftools_mpileup-0dbff46d5a1b/test-data/annotate3.vcfUT@`PKERHW.v5 "Dbcftools_mpileup-0dbff46d5a1b/test-data/annotate4.vcfUT@`PKER>O2 Ebcftools_mpileup-0dbff46d5a1b/test-data/annots.bcfUT@`PKERZ9'V 2 Kbcftools_mpileup-0dbff46d5a1b/test-data/annots.vcfUT@`PKERcd3 Obcftools_mpileup-0dbff46d5a1b/test-data/annots2.vcfUT@`PKERwU3 !Qbcftools_mpileup-0dbff46d5a1b/test-data/annots4.tabUT@`PKERT~;`3 Qbcftools_mpileup-0dbff46d5a1b/test-data/annots4.vcfUT@`PKER 1 Sbcftools_mpileup-0dbff46d5a1b/test-data/check.vcfUT@`PKER~+w ?A/ Wbcftools_mpileup-0dbff46d5a1b/test-data/cnv.vcfUT@`PKER9#8 cbcftools_mpileup-0dbff46d5a1b/test-data/cnv_baf_only.vcfUT@`PKERD5@ jbcftools_mpileup-0dbff46d5a1b/test-data/cnv_pairwise_summary.tabUT@`PKERdw|7 kbcftools_mpileup-0dbff46d5a1b/test-data/cnv_summary.tabUT@`PKER3b6 lbcftools_mpileup-0dbff46d5a1b/test-data/color_chrs.datUT@`PKERS@ mbcftools_mpileup-0dbff46d5a1b/test-data/color_chrs_unrelated.datUT@`PKERQ6 nbcftools_mpileup-0dbff46d5a1b/test-data/concat.1.a.vcfUT@`PKERo*@Ep6 qbcftools_mpileup-0dbff46d5a1b/test-data/concat.1.b.vcfUT@`PKER*N6 Stbcftools_mpileup-0dbff46d5a1b/test-data/concat.2.a.vcfUT@`PKER0T6 vbcftools_mpileup-0dbff46d5a1b/test-data/concat.2.b.vcfUT@`PKER26 xbcftools_mpileup-0dbff46d5a1b/test-data/concat.3.0.vcfUT@`PKER`6 Vybcftools_mpileup-0dbff46d5a1b/test-data/concat.3.a.vcfUT@`PKERx~sp=6 a{bcftools_mpileup-0dbff46d5a1b/test-data/concat.3.b.vcfUT@`PKERwC+6 >bcftools_mpileup-0dbff46d5a1b/test-data/concat.3.c.vcfUT@`PKERTb6 րbcftools_mpileup-0dbff46d5a1b/test-data/concat.3.d.vcfUT@`PKERXb6 ]bcftools_mpileup-0dbff46d5a1b/test-data/concat.3.e.vcfUT@`PKER0ub6 bcftools_mpileup-0dbff46d5a1b/test-data/concat.3.f.vcfUT@`PKERGC$O9 ibcftools_mpileup-0dbff46d5a1b/test-data/consensus.1.chainUT@`PKERV7 (bcftools_mpileup-0dbff46d5a1b/test-data/consensus.1.outUT@`PKER!J4 bcftools_mpileup-0dbff46d5a1b/test-data/consensus.faUT@`PKER yU5 ىbcftools_mpileup-0dbff46d5a1b/test-data/consensus.tabUT@`PKER A5 abcftools_mpileup-0dbff46d5a1b/test-data/consensus.vcfUT@`PKER'7 bcftools_mpileup-0dbff46d5a1b/test-data/convert.23andmeUT@`PKERh 9 Jbcftools_mpileup-0dbff46d5a1b/test-data/convert.gs.gt.genUT@`PKER%L= bcftools_mpileup-0dbff46d5a1b/test-data/convert.gs.gt.samplesUT@`PKERE6k T$8 Kbcftools_mpileup-0dbff46d5a1b/test-data/convert.gvcf.vcfUT@`PKERz: %bcftools_mpileup-0dbff46d5a1b/test-data/convert.hls.gt.hapUT@`PKERNKWd= bcftools_mpileup-0dbff46d5a1b/test-data/convert.hls.gt.legendUT@`PKERv~W > bcftools_mpileup-0dbff46d5a1b/test-data/convert.hls.gt.samplesUT@`PKERhM 9 bcftools_mpileup-0dbff46d5a1b/test-data/convert.hs.gt.hapUT@`PKER%L= Abcftools_mpileup-0dbff46d5a1b/test-data/convert.hs.gt.samplesUT@`PKER/eo3 bcftools_mpileup-0dbff46d5a1b/test-data/convert.vcfUT@`PKERsj &0. ګbcftools_mpileup-0dbff46d5a1b/test-data/csq.faUT@`PKERz֣O 0 ebcftools_mpileup-0dbff46d5a1b/test-data/csq.gff3UT@`PKER^3&m / bcftools_mpileup-0dbff46d5a1b/test-data/csq.vcfUT@`PKER?oD9 bcftools_mpileup-0dbff46d5a1b/test-data/fasta_indexes.locUT@`PKERܒkL 4 ͳbcftools_mpileup-0dbff46d5a1b/test-data/filter.1.vcfUT@`PKER 4 bcftools_mpileup-0dbff46d5a1b/test-data/filter.2.vcfUT@`PKER_\4 bcftools_mpileup-0dbff46d5a1b/test-data/filter.3.vcfUT@`PKER]44 {bcftools_mpileup-0dbff46d5a1b/test-data/filter.4.vcfUT@`PKER]:8 bcftools_mpileup-0dbff46d5a1b/test-data/fixploidy.ploidyUT@`PKERS- 9 bcftools_mpileup-0dbff46d5a1b/test-data/fixploidy.samplesUT@`PKER8k5 bcftools_mpileup-0dbff46d5a1b/test-data/fixploidy.vcfUT@`PKER/ Ebcftools_mpileup-0dbff46d5a1b/test-data/gvcf.faUT@`PKERD2 ibcftools_mpileup-0dbff46d5a1b/test-data/isec.a.vcfUT@`PKERm