Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

calendar (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: time

Requires: MathScript RT Module

Syntax

calendar

calendar(d)

calendar(y, m)

c = calendar

c = calendar(d)

c = calendar(y, m)

Description

Returns a calendar for a month that you specify. calendar(y, m) returns a 7-by-7 matrix where the first row contains abbreviations for the days of the week, beginning with Sunday. c = calendar(y, m) returns a 6-by-7 real matrix where each column represents a day of the week, beginning with Sunday.

Examples

Inputs

Name Description
d Specifies the date. d is a string or number.
y Specifies the year. y must be an integer greater than 0.
m Specifies the month. m must be an integer between 1 and 12.

Outputs

Name Description
c Returns a calendar for the current month or for month m of year y. c is a 6-by-7 real matrix.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (returns error or is ignored)
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

calendar(2006, 6)

C = calendar

C = calendar(2004, 10)

d = now;
C = calendar(d)

d = date;
C = calendar(d)

Related Topics

clock
date
date_to_num
date_to_str
now


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit