summaryrefslogtreecommitdiff
path: root/src/date.c
AgeCommit message (Collapse)Author
1999-08-01(usage): Correct description of %S; (00..60, not 00..61).Jim Meyering
From Ken Pizzini.
1999-05-05(show_date): Change an automatic aggregate initializerJim Meyering
to be a static one. For SunOS4's cc.
1999-04-08Accept new option: --iso-8601.Jim Meyering
1999-03-31No longer include long-options.h.Jim Meyering
[long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-31(PROGRAM_NAME, AUTHORS): Define and use.Jim Meyering
1999-03-07(batch_convert): Use a `%s' format in error call,Jim Meyering
in case the argument string contains a `%'.
1999-03-06Include long-options.h.Jim Meyering
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-01-25(usage): Remove static attribute.Jim Meyering
Move function be the first in the file.
1999-01-14Include closeout.h. (main): Use close_stdout_status.Jim Meyering
1998-12-11(main): Arrange to exit unsuccessfully when stime fails.Jim Meyering
From Andreas Schwab.
1998-10-03(main): Update to use new version of posixtime.Jim Meyering
1998-09-19update bug-reporting addressJim Meyering
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-03-26(batch_convert): Remove spurious space in error message.Jim Meyering
Reported by Karl Berry.
1998-03-14s/get-date.h/getdate.h/Jim Meyering
1998-02-20s/getdate.h/get-date.h/Jim Meyering
1998-01-10(batch_convert): Use memcpy when we don't need return value.Jim Meyering
1997-12-21s/__P/PARAMS/Jim Meyering
1997-11-15(mempcpy): Remove definition.Jim Meyering
1997-11-12[!HAVE_MEMPCPY] (mempcpy): Define.Jim Meyering
(batch_convert): Use mempcpy rather than stpcpy.
1997-10-25Remove old-style xmalloc and xrealloc decls.Jim Meyering
1997-10-23Remove stpcpy decl.Jim Meyering
1997-10-07update bug-reporting addressJim Meyering
1997-08-18(show_date): Don't hang if strftime produces an empty string.Jim Meyering
1997-07-12(MAYBE_SET_TZ_UTC0): New macro.Jim Meyering
(set_tz): New function. (batch_convert): If necessary, save the initial value of TZ and for each date in the file, restore it before each call to get_date, then set it to UTC0 before each show_date call. (main): Don't set TZ before calling get_date. Set TZ after get_date call and before show_date call. Reported by Matthew Braun.
1997-06-16tweak error messageJim Meyering
1997-02-01bracket bug address with <> and append a periodJim Meyering
1997-02-01Compare getopt_long return value against -1, not EOF. Use NULL, not '(int ↵Jim Meyering
*) 0' as last parameter in getopt_long call.
1997-01-18Include getdate.h.Jim Meyering
(<time.h>, <sys/time.h>): Don't include -- now getdate.h does it.
1996-11-03change bug-reporting addressJim Meyering
1996-11-02change bug-reporting addressJim Meyering
1996-11-02(main): Give better diagnostic.Jim Meyering
Suggestion from Karl Berry.
1996-10-05(main): update --version output to conform to coding standardJim Meyering
1996-09-02(usage): Tell where to report bugs.Jim Meyering
1996-04-30(usage): Change TAB in message to spaces. Doing that seemsJim Meyering
to have worked around a problem with something in gettext that was producing a truncated usage message for date's usage. François Pinard.
1996-04-24update Copyright years for 1996Jim Meyering
1996-04-22(usage): Describe new %V format.Jim Meyering
1996-04-13(usage): Add missing `\n\' at the end of newly added lines for %e and %z.Jim Meyering
1996-04-13(usage): Document %e and %z. Reported by Karl Berry.Jim Meyering
1996-03-24Update FSF's address.Jim Meyering
1996-03-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-12(main): Initialize for internationalized message support:Jim Meyering
call setlocale, bindtextdomain, and textdomain.
1996-02-25(batch_convert): Put `' around filename in error in case it's empty.Jim Meyering
1996-02-23(batch_convert): Declare BUFLEN local to be of type size_t, not int.Jim Meyering
1996-02-01(main): Accept new option, --rfc-822 (-R).Jim Meyering
(show_date): Use RFC822-mandated strftime format. From H. Peter Anvin (hpa@storm.net). (usage): Add a line describing the new option.
1996-01-07Fix typo in __P use.Jim Meyering
1996-01-06Protoize and __P-protect forward dcls.Jim Meyering
1996-01-06(putenv): Declare.Jim Meyering
(universal_time): Remove. (main): If -u is given, set TZ to "UTC0"; this causes date to use UTC uniformly and fixes bugs in the handling of date -u +'%s %Z'. (show_date): Just use localtime and a single format, since TZ will be set properly if -u is given. From Paul Eggert.