*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> cal (1)              


 cal(1)                                                               cal(1)

 NAME    [Toc]    [Back]
      cal - print calendar

 SYNOPSIS    [Toc]    [Back]
      cal [[month] year]

 DESCRIPTION    [Toc]    [Back]
      cal prints a calendar for the specified year.  If a month is also
      specified, a calendar just for that month is printed.  If neither is
      specified, a calendar for the present month is printed.  year can be
      between 1 and 9999.  month is a decimal number between 1 and 12.  The
      calendar produced is a Gregorian calendar.

    Environment Variables
      LANG determines the locale to use for the locale categories when both
      LC_ALL and the corresponding environment variable (beginning with LC_)
      do not specify a locale.  If LANG is not set or is set to the empty
      string, a default of "C" (see lang(5)) is used.

      LC_CTYPE determines the locale for interpretation of sequences of
      bytes of text data as characters (e.g., single- verses multibyte
      characters in arguments and input files).

      LC_TIME determines the format and contents of the calendar.

      TZ determines the timezone used to calculate the value of the current

      If any internationalization variable contains an invalid setting, cal
      behaves as if all internationalization variables are set to "C".  See

    International Code Set Support    [Toc]    [Back]
      Single- and multi-byte character code sets are supported.

 EXAMPLES    [Toc]    [Back]
      The command:

           cal 9 1850

      prints the calendar for September, 1850 on the screen as follows:

                September 1850    [Toc]    [Back]
            S    M   Tu    W   Th    F    S
            1    2    3    4    5    6    7
            8    9   10   11   12   13   14
           15   16   17   18   19   20   21
           22   23   24   25   26   27   28
           29   30

 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003

 cal(1)                                                               cal(1)

      However, for XPG4 the output looks like below:

                         Sep 1850    [Toc]    [Back]
           Sun  Mon  Tue  Wed  Thu  Fri  Sat
            1    2    3    4    5    6    7
            8    9   10   11   12   13   14
           15   16   17   18   19   20   21
           22   23   24   25   26   27   28
           29   30

 WARNINGS    [Toc]    [Back]
      The year is always considered to start in January even though this is
      historically naive.

      Beware that cal 83 refers to the early Christian era, not the 20th

      cal: SVID2, SVID3, XPG2, XPG3, XPG4

 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
 Similar pages
Name OS Title
csa_x_process_updates HP-UX invoke a calendar application's calendar event handler
csa_read_calendar_attributes HP-UX read and return the calendar attributes values for a calendar
csa_list_entry_sequence HP-UX lists the recurring calendar entries that are associated with a calendar entry
csa_update_calendar_attributes HP-UX update the calendar attributes values for a calendar
csa_list_calendar_attributes HP-UX list the names of the calendar attributes associated with a calendar
csa_logon HP-UX log on to the calendar service and establish a session with a calendar
csa_delete_calendar HP-UX delete a calendar from the calendar service
csa_read_entry_attributes HP-UX read and return the calendar entry attribute values for a specified calendar entry
csa_add_calendar HP-UX add a calendar to the calendar service
DXmPrintWgtAugmentList Tru64 Defines additional print formats and lets you add new options to the print widget option menus.
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service