Home > System Defined Functions Reference > Conversion Functions

Conversion Functions

Function

Description

Syntax

Days

Converts the argument from seconds to days. The Days function uses the run setup information to calculate how many hours are in a day. For example, a day has 8 hours, Days(201600) = 7.

Days(Seconds)

DaysToSec

Converts the argument from days to seconds. This is the inverse function for Days().

DaysToSec(Days)

Hours

Converts the argument from seconds to hours by dividing by 3600. For example: Hours(32400) = 9.

Hours(Seconds)

HoursToSec

Converts the argument from hours to seconds. This is the inverse function for Hours().

HoursToSec(Hours)

Minutes

Converts the argument from seconds to minutes. For example, Minutes(4500) = 75.

Minutes(Seconds)

MinutesToSec

Converts the argument from minutes to seconds. This is the inverse function for Minutes().

MinutesToSec(Minutes)

Months

Converts the argument from seconds to months. For example, for 8 hours in a day and 22 days in a month, Months(1267200) = 2.

Months(Seconds)

MonthsToSec

Converts the argument from months to seconds. This is the inverse function for Months().

MonthsToSec(Months)

Weeks

Converts the argument from seconds to weeks. The function uses the run setup information to calculate how many days are in a week. For example, if there are 5 days in a week and 8 hours in a day, then Weeks(6480000) = 45.

Weeks(Seconds)

WeeksToSec

Converts the argument from weeks to seconds. This is the inverse function to Weeks().

WeeksToSec(Weeks)

Years

Converts the argument from seconds to years. The function uses the run setup to calculate the length of a year. For example, if there are 22 days in a month and 8 hours in a day, then Years(7603200) = 1.

Years(Seconds)

YearsToSec

Converts the argument from years to seconds. This is the inverse function to Years().

YearsToSec(Years)

Related Topics

System Defined Functions Reference