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

datenum (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

n = datenum(s)

n = datenum(s, pivotyear)

n = datenum(v)

Description

Converts a time in string or vector format to a double-precision, floating-point number. n = datenum(s) is equivalent to n = datenum(s, -1).

Examples

Inputs

Name Description
s Specifies a time in string format.
pivotyear Provides additional information about the century if you use the form yy in s. If pivotyear is less than 0, LabVIEW considers s to be a time in the current century.
v Specifies a time in vector format.

Outputs

Name Description
n Returns the time as a double-precision, floating-point number.

Examples

N = datenum('18-Oct-04', 1900);
N = datenum('18-Oct-04');

Related Topics

date
datestr
datevec


Resources


 

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