Home > System Defined Functions Reference > Conversion Functions
Function |
Description |
Syntax |
---|---|---|
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) |
|
Converts the argument from days to seconds. This is the inverse function for Days(). |
DaysToSec(Days) |
|
Converts the argument from seconds to hours by dividing by 3600. For example: Hours(32400) = 9. |
Hours(Seconds) |
|
Converts the argument from hours to seconds. This is the inverse function for Hours(). |
HoursToSec(Hours) |
|
Converts the argument from seconds to minutes. For example, Minutes(4500) = 75. |
Minutes(Seconds) |
|
Converts the argument from minutes to seconds. This is the inverse function for Minutes(). |
MinutesToSec(Minutes) |
|
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) |
|
Converts the argument from months to seconds. This is the inverse function for Months(). |
MonthsToSec(Months) |
|
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) |
|
Converts the argument from weeks to seconds. This is the inverse function to Weeks(). |
WeeksToSec(Weeks) |
|
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) |
|
Converts the argument from years to seconds. This is the inverse function to Years(). |
YearsToSec(Years) |
Related Topics