Thread (22 messages) flat view 22 messages, 3 authors, 2016-06-15

Re: [PATCH 1/2] Add date formatting and parsing functions relative to a given time

From: Jeff King <hidden>
Date: 2016-06-15 22:47:20

Possibly related (same subject, not in this thread)

On Sun, Aug 30, 2009 at 11:56:37AM +0200, Alex Riesen wrote:
quoted
+check_show 5 '5 seconds ago'
+check_show 300 '5 minutes ago'
+check_show 18000 '5 hours ago'
+check_show 432000 '5 days ago'
+check_show 1728000 '3 weeks ago'
+check_show 13000000 '5 months ago'
+check_show 37500000 '1 year, 2 months ago'
+check_show 55188000 '1 year, 9 months ago'
+check_show 630000000 '20 years ago'
check_show 630000000 '20.years.ago'?
(Arbitrary, non-whitespace delimiters, which was an
advertised feature, to make shell's life easier)
This part is about checking what show_date produces (the first number is
an offset from now in seconds, and the second is what we expect), so it
always has spaces.

See the check_approxidate section further down for an example of parsing
what you are talking about.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help