summaryrefslogtreecommitdiff
path: root/lib/libc/stdtime/strftime.c
Commit message (Collapse)AuthorAgeFilesLines
* There were so far only 42 different conversion specifications inJoerg Wunsch2000-01-281-0/+16
| | | | | | | | | | | | strftime(3), add another one. :) %z yields the local timezone's offset in hours and minutes, as used in RFC822 headers. There's a precedence for this in Lunux' libc, and Internet software (like Perl scripts) start using it. OKed by (wrt. the code freeze): jkh Notes: svn path=/head/; revision=56756
* %Ex -> %Ef to not conflict with POSIXAndrey A. Chernov1999-11-301-2/+19
| | | | | | | | | Add %EF (long months name / day order) Check that O and E not intermixed Add missing POSIX extension to example Notes: svn path=/head/; revision=53960
* Add %Ex extension to determine "%e %b" or "%b %e" orderAndrey A. Chernov1999-11-301-5/+9
| | | | | | | Separate alternative for O and E cases Notes: svn path=/head/; revision=53940
* Implement new format specifier for strftime: %OB, alternative nationalDmitrij Tejblum1999-09-111-2/+6
| | | | | | | | | | | | representation of the full month name. In the Russian locale, this alternative will be "nominative case", useful when the date designate month as a whole. E.g. month heading in a calendar. I hope it can be useful for some other locales too. Discussed with: wollman, ache Notes: svn path=/head/; revision=51186
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Fixed printf format errors. Don't assume so many things about time_t.Bruce Evans1998-06-301-20/+16
| | | | | | | | | Obtained from: partial merge of ADO version tzcode96h (was fully merged in 1.10 but backed out in 1.11; the FreeBSD code for %s was earlier, prettier but buggier). Notes: svn path=/head/; revision=37299
* Merged in better support of ISO 8601 from elsie.nci.nih.gov.Wolfgang Helbig1997-10-031-54/+76
| | | | | | | | Added the conversion specifiers %g and %G, that are replaced by the year which contains the greater part of the week in question. Notes: svn path=/head/; revision=30089
* Import strptime(3) into libc. We've got permission by Kevin Ruddy toJoerg Wunsch1997-08-091-177/+2
| | | | | | | | | | | modify the original `no modifications' copyright message, and i've included his mail into the source file. The common localization functions between strptime(3) and strftime(3) have been broken out into timelocal.[ch]. Notes: svn path=/head/; revision=28021
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Include "setlocale.h" for _PathLocale like other parts already didAndrey A. Chernov1997-02-071-3/+2
| | | | | | | Should go in 2.2 Notes: svn path=/head/; revision=22402
* Update the comment why range checking is not neededAndrey A. Chernov1997-02-051-1/+1
| | | | | | | Should go in 2.2 Notes: svn path=/head/; revision=22305
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Add comment that range checking is already done at upper levelAndrey A. Chernov1996-12-281-1/+2
| | | | | | | | | Kill snprintf left in collate.c from previous backout Should go in 2.2 Notes: svn path=/head/; revision=20961
* Move PATH_LOCALE handling to setlocale.c, simplify locale path building,Andrey A. Chernov1996-11-261-10/+9
| | | | | | | don't treat empty encoding as C encoding Notes: svn path=/head/; revision=19965
* Revert to old version of strftime.c; the new one doesn't work right.Garrett Wollman1996-07-191-110/+78
| | | | Notes: svn path=/head/; revision=17224
* Merge the recently-imported tzcode96h distribution (libc portion). TheGarrett Wollman1996-07-181-79/+111
| | | | | | | | | part that does zic(8)/zdump(8) is still yet to be imported (but the old zic and zdump will work just fine with these header files and the data format has not changed). Notes: svn path=/head/; revision=17209
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-121-2/+1
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Removed false copyrights...Marc G. Fournier1996-05-271-3/+1
| | | | Notes: svn path=/head/; revision=15927
* Added in appropriate Berkeley copyright and RCS Id: stringMarc G. Fournier1996-05-271-1/+3
| | | | | | | Closes PR#doc/536 Notes: svn path=/head/; revision=15923
* Don't reset LC_TIME to C when it isn't neccessaryAndrey A. Chernov1995-10-231-13/+17
| | | | Notes: svn path=/head/; revision=11735
* Restore %s format support from previous versionAndrey A. Chernov1995-08-071-1/+22
| | | | Notes: svn path=/head/; revision=9988
* Fix default %c to be ctime-compatible as supposed (by Solaris too)Andrey A. Chernov1995-08-061-4/+4
| | | | Notes: svn path=/head/; revision=9964
* Implement locale-sensitive strftime () from ADO (heavily modifiedGarrett Wollman1995-08-041-104/+240
| | | | | | | | | | | | | by me). This probably loses for multibyte characters, but I have no way of telling. I'll let ache decide whether to add this support to startup_setlocale. Note that for this to make any sense at all, the symlinks in /usr/share/locale must go. (For the moment, this doesn't make any difference since there are no locales supplied.) Obtained from: Arthur David Olson <ado@elsie.nci.nih.gov> Notes: svn path=/head/; revision=9912
* On snap 950210, format %s (print seconds from the epoch) is missingJoerg Wunsch1995-03-011-0/+22
| | | | | | | | | | | | from the code in strftime.c . This affects both the library code and all the commands using it (e.g. date +%s). Note that %s is not required by ANSI, but we've already got it in 1.1.5.1. Suggested by: luigi@labinfo.iet.unipi.it (Luigi Rizzo) Notes: svn path=/head/; revision=6815
* The rest of tzcode94g from Arthur David Olson.Garrett Wollman1994-09-131-0/+393
Obtained From: Arthur David Olson, ftp://elsie.nci.nih.gov/pub/tzcode94g.tar.gz Notes: svn path=/vendor/tzcode/dist/; revision=2708