beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 240

background image

D

ATE

(

Y

,

M

,

D

)

V

LINX

F

IELDBUS

G

ATEWAY

M

ANAGER

U

SER

M

ANUAL

P

AGE

224

D

ATE

(

Y

,

M

,

D

)

A

RGUMENT

T

YPE

D

ESCRIPTION

y

int

The year to be encoded, in four-digit form.

m

int

The month to be encoded, from 1 to 12.

d

int

The date to be encoded, from 1 upwards.

D

ESCRIPTION

Returns a value representing the indicated date as the number of seconds elapsed since the
datum point of 1

st

January 1997. This value can then be used with other time/date functions.

F

UNCTION

T

YPE

This function is passive.

R

ETURN

T

YPE

int

.

E

XAMPLE

t := Date(2000,12,31)