EasyLanguage Reserved Words & Functions

SecondsIntoWeek (Function)

image\trumpet2.gif Disclaimer

The SecondsIntoWeek function returns the number of seconds since 12 am Sunday.

Syntax

SecondsIntoWeek(XDay, XTime, XSec))

Returns (Integer)

The total seconds from 12 am Sunday to the specified XDay, XTime, and Xsec values.

Parameters

Name

Type

Description

XDay

Numeric

Sets an integer value for the day of the week.  Enter 0 for Sunday, 1 for Monday, through 6 for Saturday.

XTime

Numeric

Specifies the time in 24 hour HHMM format.  For example, enter 2150 for 9:50 pm.

XSec

Numeric

Specifies the seconds.  For example, enter 33 for the number of seconds in 9:50:33 pm.

Example

Assigns to Value1 the number of seconds between Sunday at 12:00 am and Monday at 10:20:15 am, which is 123615 seconds.

Value1 = SecondsIntoWeek(1, 1020);