getTimeRetrieve the local time (in the local time zone) |
|
This information is part of the Modelica Standard Library maintained by the Modelica Association.
(ms, sec, min, hour, day, mon, year) = System.getTime();
Returns the local time at the time instant this function was called. All returned values are of type Integer and have the following meaning:
Argument Range Description ms 0 .. 999 Milli-seconds after seconds sec 0 .. 59 Seconds after minute min 0 .. 59 Minutes after hour hour 0 .. 23 Hours after midnight day 1 .. 31 Day of month mon 1 .. 12 Current month year ≥ 2015 Current year
(ms, sec, min, hour, mon, year) = getTime() // = (281, 30, 13, 10, 15, 2, 2015)
// Feb. 15, 2015 at 10:13 after 30.281 s
This function is impure!
| ms |
Type: Integer Description: Millisecond |
|---|---|
| sec |
Type: Integer Description: Second |
| min |
Type: Integer Description: Minute |
| hour |
Type: Integer Description: Hour |
| day |
Type: Integer Description: Day |
| mon |
Type: Integer Description: Month |
| year |
Type: Integer Description: Year |