Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

calendar (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the time class.

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.

Details

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

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

Examples

calendar(2006, 6)

C = calendar

C = calendar(2004, 10)

d = now;
C = calendar(d)

d = date;
C = calendar(d)

Related Topics

clock
date
datenum
datestr
now


Resources


 

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