morpheus-base

morpheus base system
git clone git://git.2f30.org/morpheus-base
Log | Files | Refs

cal.1 (1368B)


      1 .Dd January 18, 2015
      2 .Dt CAL 1 sbase\-VERSION
      3 .Sh NAME
      4 .Nm cal
      5 .Nd show calendar
      6 .Sh SYNOPSIS
      7 .Nm cal
      8 .Op Fl 1 | Fl 3 | Fl y | Fl n Ar nmonths
      9 .Op Fl s | Fl m | Fl f Ar firstday
     10 .Op Fl c Ar columns
     11 .Oo Oo Ar month Oc Ar year Oc
     12 .Sh DESCRIPTION
     13 Print
     14 .Ar nmonths
     15 calendars side by side beginning with
     16 .Ar month
     17 and
     18 .Ar year .
     19 Each row of calendars contains at most
     20 .Ar columns
     21 calendars. The date formatting is obtained using
     22 .Xr localtime 3 .
     23 .Pp
     24 If
     25 .Ar year
     26 is given without
     27 .Ar month ,
     28 print the whole year, unless overridden by other options.
     29 .Pp
     30 The Julian calendar is used until Sep 2, 1752. The Gregorian calendar is used
     31 starting the next day on Sep 14, 1752.
     32 .Sh OPTIONS
     33 .Bl -tag -width Ds
     34 .It Fl 1
     35 Output current month. This is the default.
     36 .It Fl 3
     37 Output previous, current and next month.
     38 .It Fl n Ar nmonths
     39 Output in total
     40 .Ar nmonths
     41 starting from the current month.
     42 .It Fl y Ar year
     43 Output an entire
     44 .Ar year .
     45 .It Fl s
     46 Output Sunday as first day of week.
     47 .It Fl m
     48 Output Monday as first day of week.
     49 .It Fl f Ar firstday
     50 Output
     51 .Ar firstday
     52 (0 is Sunday, 6 is Saturday) as first day of week.
     53 .It Fl c Ar columns
     54 Set number of calendars in a row. The default is 3.
     55 .El
     56 .Sh SEE ALSO
     57 .Xr localtime 3
     58 .Sh STANDARDS
     59 The
     60 .Nm
     61 utility is compliant with the
     62 .St -p1003.1-2008
     63 specification.
     64 .Pp
     65 The flags
     66 .Op Fl 13ynsmfc
     67 are an extension to that specification.