Skip to content
Snippets Groups Projects
Select Git revision
  • approxidate-tweaks
  • master default protected
  • bulk-checkin-sign-compare-fix
  • v2.49.0
  • v2.49.0-rc2
  • v2.49.0-rc1
  • v2.49.0-rc0
  • v2.48.1
  • v2.48.0
  • v2.48.0-rc2
  • v2.48.0-rc1
  • v2.46.3
  • v2.40.4
  • v2.41.3
  • v2.42.4
  • v2.43.6
  • v2.44.3
  • v2.45.3
  • v2.47.2
  • v2.48.0-rc0
  • v2.47.1
  • v2.47.0
  • v2.47.0-rc1
23 results

date.c

  • Tuomas Ahola's avatar
    d070263e
    approxidate: overwrite mday for now, today and yesterday · d070263e
    Tuomas Ahola authored
    
    In c27cc94f (approxidate: handle pending number for
    "specials", 2018-11-02) "Jan 5 yesterday" was given as
    an example of an approxidate string where "the number
    shouldn't be respected at all".  Likewise, "tea today"
    shouldn't respect the usual tea-time logic of going
    backwards in time; instead "today" should be able to
    override the mday change possibly caused by "tea".
    
    Add a new format "today" as an alias of "now", and make
    it and "yesterday" overwrite mday.  Make date_time() use
    the new method for deferred mday adjustment, and add tests
    to cover the changes.
    
    Signed-off-by: default avatarTuomas Ahola <taahol@utu.fi>
    Verified
    d070263e
    History
    approxidate: overwrite mday for now, today and yesterday
    Tuomas Ahola authored
    
    In c27cc94f (approxidate: handle pending number for
    "specials", 2018-11-02) "Jan 5 yesterday" was given as
    an example of an approxidate string where "the number
    shouldn't be respected at all".  Likewise, "tea today"
    shouldn't respect the usual tea-time logic of going
    backwards in time; instead "today" should be able to
    override the mday change possibly caused by "tea".
    
    Add a new format "today" as an alias of "now", and make
    it and "yesterday" overwrite mday.  Make date_time() use
    the new method for deferred mday adjustment, and add tests
    to cover the changes.
    
    Signed-off-by: default avatarTuomas Ahola <taahol@utu.fi>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.