GetTimestep

This function evaluates to the length of the timestep ending on the given datetime.

Description

The length of a timestep, in units of "sec".

Type

NUMERIC

Arguments

Type

Meaning

1

DATETIME

the datetime of the end of the timestep

Evaluation

The datetime argument; which may be specified symbolically, is converted into an actual datetime. Then, the length of the timestep within which this time is, is determined.

This function requires that the specified datetime resolve to a fully specified datetime or an error will occur.

Comments

If the given datetime corresponds to the moment when one timestep ends and another begins, this function evaluates to the length of the timestep which is ending. As elsewhere in RiverWare, 24:00 hours is considered to be the day which is ending, and 00:00 hours is considered to be the day which is just beginning.

 
GetTimestep(@"February 23, 1996")
 
21600 "sec" in a 6-hour model
86400 "sec" in a daily model
2505600.0 "sec" in a monthly model