DateTime Command
- DateAndTime.DateTime(Tag, Day_Night_Ratio=2)
This command is used To define day night ratio.
Argument
Type
Description
Tag
int
Unique integer value that will be used for referring to the defined elements or objects.
Day_Night_Ratio
float
Specifies the day to night ratio. The predefined value is 2 that means in a day 16 hours is duration of day and 8 hours is night duration.
Example:
The following demonstrates the use of the DateTime command.
Python Code
import opensrane as opr opr.DateAndTime.DateTime(1,Day_Night_Ratio=2)
Code Developed by: Bijan Sayyafzadeh