aboutsummaryrefslogtreecommitdiffstats
path: root/date.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-05date: make DATE_MODE thread-safeRené Scharfe1-18/+18
2024-03-13date: make "iso-strict" conforming for the UTC timezoneBeat Bolli1-5/+9
2023-05-09Merge branch 'en/header-split-cache-h-part-2'Junio C Hamano1-1/+2
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+1
2023-04-24treewide: remove cache.h inclusion due to previous changesElijah Newren1-1/+1
2023-04-24treewide: be explicit about dependence on strbuf.hElijah Newren1-0/+1
2023-04-20Merge branch 'rs/remove-approxidate-relative'Junio C Hamano1-14/+0
2023-04-11pager.h: move declarations for pager.c functions from cache.hElijah Newren1-0/+1
2023-04-10date: remove approxidate_relative()René Scharfe1-14/+0
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-01-13date.c: allow ISO 8601 reduced precision timesĐoàn Trần Công Danh1-0/+37
2022-10-17date: mark unused parameters in handler functionsJeff King1-3/+3
2022-02-16date API: add and use a date_mode_release()Ævar Arnfjörð Bjarmason1-0/+5
2022-02-16date API: provide and use a DATE_MODE_INITÆvar Arnfjörð Bjarmason1-2/+1
2022-02-16date API: create a date.h, split from cache.hÆvar Arnfjörð Bjarmason1-0/+1
2021-11-04strbuf_addftime(): handle "%s" manuallyJeff King1-1/+1
2021-06-16comments: avoid using the gender of our usersFelipe Contreras1-1/+1
2020-04-24date.c: allow compact version of ISO-8601 datetimeĐoàn Trần Công Danh1-0/+14
2020-04-24date.c: skip fractional second part of ISO-8601Đoàn Trần Công Danh1-0/+12
2020-04-24date.c: validate and set time in a helper functionĐoàn Trần Công Danh1-4/+15
2020-04-23date.c: s/is_date/set_date/Đoàn Trần Công Danh1-11/+11
2019-11-30date.c: switch to reentrant {gm,local}time_rDoan Tran Cong Danh1-8/+10
2019-09-12Quit passing 'now' to date codeStephen P. Smith1-14/+13
2019-02-20completion: add more parameter value completionNguyễn Thái Ngọc Duy1-0/+4
2019-02-06Merge branch 'lt/date-human'Junio C Hamano1-22/+126
2019-01-29Add `human` format to test-toolStephen P. Smith1-4/+17
2019-01-24show_date_relative(): drop unused "tz" parameterJeff King1-4/+4
2019-01-22Replace the proposed 'auto' mode with 'auto:'Stephen P. Smith1-7/+8
2019-01-18Add 'human' date formatLinus Torvalds1-20/+110
2018-11-07approxidate: fix NULL dereference in date_time()Jeff King1-1/+1
2018-11-02approxidate: handle pending number for "specials"Jeff King1-27/+33
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-1/+1
2017-07-06Merge branch 'ab/strbuf-addftime-tzname-boolify'Junio C Hamano1-1/+1
2017-07-01strbuf: change an always NULL/"" strbuf_addftime() param to boolÆvar Arnfjörð Bjarmason1-1/+1
2017-06-22Merge branch 'rs/strbuf-addftime-zZ'Junio C Hamano1-2/+12
2017-06-15date: use localtime() for "-local" time formatsJeff King1-2/+12
2017-06-15strbuf: let strbuf_addftime handle %z and %Z itselfRené Scharfe1-1/+1
2017-04-27date.c: abort if the system time cannot handle one of our timestampsJohannes Schindelin1-2/+15
2017-04-27timestamp_t: a new data type for timestampsJohannes Schindelin1-33/+33
2017-04-23PRItime: introduce a new "printf format" for timestampsJohannes Schindelin1-13/+13
2017-04-23parse_timestamp(): specify explicitly where we parse timestampsJohannes Schindelin1-3/+3
2016-07-27date: add "unix" formatJeff King1-0/+8
2016-06-20local_tzoffset: detect errors from tm_to_time_tJeff King1-0/+2
2015-09-03date: make "local" orthogonal to date formatJeff King1-25/+45
2015-09-03date: check for "local" before anything elseJohn Keeping1-3/+3
2015-06-29introduce "format" date-modeJeff King1-1/+8
2015-06-29convert "enum date_mode" into a structJeff King1-18/+25
2015-05-05Merge branch 'jc/epochtime-wo-tz'Junio C Hamano1-5/+9
2015-04-15parse_date_basic(): let the system handle DST conversionJunio C Hamano1-2/+6
2015-04-15parse_date_basic(): return early when given a bogus timestampJunio C Hamano1-3/+3
2015-01-07Merge branch 'jk/approxidate-avoid-y-d-m-over-future-dates'Junio C Hamano1-9/+12
2014-11-13approxidate: allow ISO-like dates far in the futureJeff King1-2/+2
2014-11-13pass TIME_DATE_NOW to approxidate future-checkJeff King1-7/+10
2014-09-19Merge branch 'jk/commit-author-parsing'Junio C Hamano1-6/+7
2014-08-29pretty: provide a strict ISO 8601 date formatBeat Bolli1-1/+13
2014-08-27date: use strbufs in date-formatting functionsJeff King1-6/+7
2014-04-17i18n: fix uncatchable comments for translators in date.cJiang Xin1-1/+1
2014-03-14Merge branch 'jk/commit-dates-parsing-fix'Junio C Hamano1-2/+21
2014-02-24log: do not segfault on gmtime errorsJeff King1-2/+4
2014-02-24date: check date overflow against time_tJeff King1-0/+17
2013-10-30Merge branch 'jk/date-c-double-semicolon'Junio C Hamano1-1/+1
2013-10-24drop redundant semicolon in empty whileJeff King1-1/+1
2013-05-29Merge branch 'jc/prune-all'Junio C Hamano1-0/+22
2013-04-17date.c: add parse_expiry_date()Junio C Hamano1-0/+22
2013-02-25Fix time offset calculation in case of unsigned time_tMike Gorchak1-2/+8
2013-02-25date.c: fix unsigned time_t comparisonMike Gorchak1-1/+1
2012-07-22Merge branch 'jc/maint-filter-branch-epoch-date'Junio C Hamano1-1/+1
2012-07-12date.c: Fix off by one error in object-header date parsingJunio C Hamano1-1/+1
2012-04-24i18n: mark relative dates for translationJonathan Nieder1-39/+56
2012-02-10Merge branch 'jc/parse-date-raw'Junio C Hamano1-0/+30
2012-02-03parse_date(): '@' prefix forces git-timestampJunio C Hamano1-1/+2
2012-02-03parse_date(): allow ancient git-timestampJunio C Hamano1-0/+29
2011-09-12date.c: Support iso8601 timezone formatsHaitao Li1-11/+23
2011-04-20date: avoid "X years, 12 months" in relative datesMichael J Gruber1-2/+3
2010-07-15Export parse_date_basic() to convert a date string to timestampJonathan Nieder1-8/+6
2010-07-05parse_date: fix signedness in timezone calculationJeff King1-1/+1
2010-06-21Merge branch 'rr/parse-date-refactor'Junio C Hamano1-19/+37
2010-06-07Refactor parse_date for approxidate functionsRamkumar Ramachandra1-19/+37
2010-05-18Add "Z" as an alias for the timezone "UTC"Marcus Comstedt1-1/+2
2010-01-27Merge branch 'jc/maint-reflog-bad-timestamp'Junio C Hamano1-8/+35
2010-01-26approxidate_careful() reports errorneous date stringJunio C Hamano1-8/+35
2010-01-20date.c: mark file-local function staticJunio C Hamano1-1/+1
2009-10-03Fix '--relative-date'Johan Sageryd1-1/+1
2009-08-30fix approxidate parsing of relative months and yearsJeff King1-1/+4
2009-08-30Add date formatting and parsing functions relative to a given timeAlex Riesen1-63/+87
2009-08-22Further 'approxidate' improvementsLinus Torvalds1-5/+27
2009-08-22Improve on 'approxidate'Linus Torvalds1-30/+63
2009-05-05Work around BSD whose typeof(tv.tv_sec) != time_tBernd Ahlers1-1/+3
2009-02-25never fallback relative times to absoluteJeff King1-1/+19
2009-02-20Support 'raw' date formatLinus Torvalds1-0/+7
2008-08-17date/time: do not get confused by fractional secondsLinus Torvalds1-6/+20
2008-06-23Make my_mktime() public and rename it to tm_to_time_t()Johannes Sixt1-5/+8
2008-06-17Fix approxidate("never") to always return 0Olivier Marin1-4/+2
2008-02-25timezone_names[]: fixed the tz offset for New Zealand.Steven Drake1-3/+3
2007-09-29parse_date_format(): convert a format name to an enum date_modeAndy Parkins1-0/+20
2007-07-24Teach approxidate() to understand "never"Johannes Schindelin1-0/+9
2007-07-13Make show_rfc2822_date() just another date output format.Junio C Hamano1-15/+5
2007-07-13Support output ISO 8601 format datesRobin Rosenberg1-0/+7
2007-06-07War on whitespaceJunio C Hamano1-5/+5
2007-06-06Accept dates before 2000/01/01 when specified as seconds since the epochJohannes Sixt1-2/+4
2007-04-25Add --date={local,relative,default}Junio C Hamano1-2/+33
2007-02-27show_date(): rename the "relative" parameter to "mode"Johannes Schindelin1-8/+12
2007-01-20show_date(): fix relative datesJohannes Schindelin1-3/+2
2006-12-20simplify inclusion of system header files.Junio C Hamano1-3/+0
2006-09-29Fix approxidate() to understand 12:34 AM/PM are 00:34 and 12:34Linus Torvalds1-10/+16
2006-09-28Fix approxidate() to understand more extended numbersLinus Torvalds1-0/+40
2006-09-28Clean up approxidate() in preparation for fixesLinus Torvalds1-3/+10
2006-08-26Relative timestamps in git logLinus Torvalds1-8/+55
2006-08-23n is in fact unused, and is later shadowed.Pierre Habouzit1-3/+3
2006-06-08date.c: improve guess between timezone offset and year.Paul Eggert1-1/+1
2006-05-01Use RFC2822 dates from "git fmt-patch".Junio C Hamano1-4/+25
2006-04-05date parsing: be friendlier to our European friends.Junio C Hamano1-21/+56
2006-04-05Merge branch 'fix'Junio C Hamano1-2/+2
2006-04-04parse_date(): fix parsing 03/10/2006Junio C Hamano1-2/+2
2006-03-09Use #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))Junio C Hamano1-3/+1
2006-01-05Fix nasty approxidate bugLinus Torvalds1-1/+1
2005-12-29code comments: spellJunio C Hamano1-1/+1
2005-11-18Teach "approxidate" about weekday syntaxLinus Torvalds1-5/+49
2005-11-17Teach "approxidate" about weekday syntaxLinus Torvalds1-1/+17
2005-11-16git's rev-parse.c function show_datestring presumes gnu dateLinus Torvalds1-0/+124
2005-10-14Unlocalized isspace and friendsLinus Torvalds1-1/+0
2005-09-22[PATCH] Fix strange timezone handlingLinus Torvalds1-10/+14
2005-09-20[PATCH] Return proper error valud from "parse_date()"Linus Torvalds1-3/+3
2005-07-12parse_date(): allow const date stringLinus Torvalds1-4/+4
2005-06-25[PATCH] fix date parsing for GIT raw commit timestamp format.Junio C Hamano1-5/+9
2005-05-22Include file cleanups..Linus Torvalds1-3/+0
2005-05-20sparse cleanupLinus Torvalds1-0/+2
2005-05-18[PATCH] fix show_date() for positive timezonesNicolas Pitre1-2/+2
2005-05-06date.c: add "show_date()" function.Linus Torvalds1-0/+28
2005-05-01date handling: handle "AM"/"PM" on timeLinus Torvalds1-8/+22
2005-05-01date.c: allow even more varied time formatsLinus Torvalds1-54/+152
2005-04-30date.c: fix printout of timezone offsets that aren't exact hoursLinus Torvalds1-2/+8
2005-04-30date.c: only use the TZ names if we don't have anything better.Linus Torvalds1-1/+5
2005-04-30date.c: split up dst information in the timezone tableLinus Torvalds1-45/+51
2005-04-30date.c: fix parsing of dates in mm/dd/yy formatLinus Torvalds1-1/+3
2005-04-30date.c: use the local timezone if none specifiedLinus Torvalds1-2/+7
2005-04-30Make the date parsing accept pretty much any random crap.Linus Torvalds1-106/+215
2005-04-30[PATCH] Do date parsing by hand...Edgar Toernig1-0/+184