Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$SEC^XLFDT(): Convert $H/VA FileMan date to Seconds

Reference Type: Supported, Category: Date Functions, ICR#: 10103

Description

The $$SEC^XLFDT extrinsic function converts a $H or VA FileMan formatted input date to the number of seconds. The input date can be entered as either a VA FileMan date or a $H date. If entered as a VA FileMan date, the date is first converted to $H via the $$FMTH^XLFDT(): Convert VA FileMan Date to $H API.

Format

  $$SEC^XLFDT(x)

Input Parameters

x:

(required) VA FileMan or $H date.

Output

returns:

Returns the $H date in seconds.

Examples

Example 1

Inputting a VA FileMan date/time:

>S X=$$SEC^XLFDT(3021118.1347)

>W X
5108536020

Example 2

Inputting a $H date:

>S X=$$SEC^XLFDT($H)

>W X
5146022146