date2str

From DavinciWiki
Jump to: navigation, search

Description

Returns string (in typical American format) for input year, month, and day

Arguments and Return Values

Parameters: Scalars specifying the year, month, and day to be converted to a string

Return Value: A string specifying that date

Usage

Syntax: date2str(year, month, day)

The inputs specifying year, month, and day must be in that order. They must be scalar.

This function only returns strings in the format "Month D, YYYY", e.g. "January 1, 2010". No other formats are implemented.

This function does not include the day of the week, since that depends on which calendar system (Julian or Gregorian) is being used.

When date2str() is entered without any arguments, it prints its description, as shown below.

Examples

dv> date2str()

Returns string of date, given year, month, and day
Scalar inputs only - no arrays!
date2str(2008,1,1) returns "January 1, 2008"
S.Marshall 08-11-2008

0
dv> date2str(2010, 1, 1)
"January 1, 2010"

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Major Sub-Functions

Recent Library Changes

Created On: 11-18-2009
Modified On: 06-02-2010

Personal tools