Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2023.0.0 - Русский


calendar

Calendar of a given month and year (Gregorian dates)

Syntax

calendar
calendar(y, m)
c = calendar()
c = calendar(y,m)

Arguments

y

integer in [1800 3000]: The Gregorian year.

m

integer in [1, 12]: The month.

c

list, with

c(1):single string: The calendar title
c(2):single string: Days names.
c(3):6x7 matrix of days indices in the month (0 for days out of the month)

The title and days names are translated according to the current language.

Description

calendar displays in the console the calendar of the current month.

calendar(y, m) displays in the console the calendar of the month m for the year y.

c = calendar() returns a list containing the calendar for the current month. Weeks start on Monday and end on Sunday.

c = calendar(y, m) returns a list containing the calendar for the given month and year.

Examples

c = calendar()
--> c = calendar()
 c  =
       c(1)
 Dec 2019

       c(2)
 Mon  Tue  Wed  Thu  Fri  Sat  Sun

       c(3)
   0.    0.    0.    0.    0.    0.    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.   31.   0.    0.    0.    0.    0.

calendar
--> calendar

             Dec 2019
 Mon  Tue  Wed  Thu  Fri  Sat  Sun
                                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   31                         

calendar(1973, 8)
--> calendar(1973, 8)
 
             Aug 1973
 Mon  Tue  Wed  Thu  Fri  Sat  Sun
            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   31          

See also

  • weekday — Порядковый номер и название дня в неделе для указанных дат
  • datevec — Date components
  • datenum — Convert to serial date number

History

ВерсияОписание
6.1 Formated display in the console added.
Report an issue
<< Time and Date Time and Date clock >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Mar 07 09:28:51 CET 2023