summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncal/ncal.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a `-m month' flag to provide a more convenient interface forwollman2004-11-231-25/+31
| | | | | | | | | displaying a calendar for a specific month of the current year than `cal $(date +"%Y") month'. A few minor code cleanups. Set WARNS=1. (This code is WARNS=5 clean except for "`O' modifier used with `%B' strftime format", which is legal in FreeBSD but GCC doesn't know about.) MFC after: 1 week
* Teach ncal(1) about month names specified on the command line.roam2002-10-021-2/+22
| | | | | | Reviewed by: -audit Approved by: silence on -audit MFC after: 3 weeks
* Easy warns fixes; constify.markm2002-04-281-3/+3
|
* Handle ASCII and US-ASCII aliasesache2001-06-101-1/+3
|
* Remove "SU" - not valid country codeache2001-06-101-2/+3
| | | | Fix locale comparison with "C", add "POSIX"
* Properly deal with one char weekdaysache2001-03-221-4/+8
|
* Uppercase first month letterache2001-03-221-1/+6
| | | | Terminate weekday string
* Use nl_langinfo instead of %EFache2001-03-211-1/+5
|
* Use %EF instead of hardcoded order for each countryache1999-11-301-41/+37
|
* use %OB for months namesache1999-09-121-2/+2
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Clean up some ambiguous nested if/elses.billf1999-07-041-2/+3
|
* Due to the switch form Julian to Gregorian calender,helbig1999-03-271-9/+14
| | | | | | even a whole month might be missing. This caused a bug for the LN -calender, whose switch was on Dec 12, 9999.
* Handle option -j correctly.helbig1998-01-151-3/+3
| | | | | Synchronize usage message with man page. PR: bin/5488
* Sync usage and synopsis. Add rcsid.charnier1998-01-071-8/+12
|
* 1. Don't be confused if the first day of a month is dropped due tohelbig1998-01-061-27/+39
| | | | | | | | Gregorian Reformation. E. G. in Albania December 1, 1912 doesn't exist. 2. Add some countries in the switch table (BE, FI, LN, LU) 3. Correct some entries from the new found source of calendar knowledge: http://www.pip.dknet.dk/~c-t/calendar.html, That is Claus Tondering's Calendar FAQ.
* Use locale to guess the switch date.helbig1998-01-031-40/+78
| | | | | Localize formatting of date of easter. Suggested by: ache
* Ensure 2 letter abbreviations of weekdays (even if LANG=Chelbig1997-12-311-3/+5
| | | | and invoked as "cal").
* Add new command ncal.helbig1997-12-151-0/+776
OpenPOWER on IntegriCloud