time
Returns current time in seconds from the epoch January 1, 1970.
Syntax
R = time
Outputs
- R
- Type: double
Example
R = time()
R = 1.54948155e+09
Discover new features and enhancements.
Discover Compose, including its language support and system requirements.
The Compose tutorials and associated example model files help introduce you to the basic functionality of the software.
Learn about the features and functionality available in Compose.
Reference guides are available for functions and commands supported by OML, Tcl, and Python.
OpenMatrix is a mathematical scripting language.
The Reference Guide contains documentation for all functions supported in the OpenMatrix language.
Returns the current date and time.
Returns time as a string in local time, for the given time, t, in seconds.
Returns the day and time input as a number of days since January 1, 0000.
Returns a date as a formatted string.
Returns the date vector (year, month, day, hour, minute, seconds) for the given date number or string.
Returns the day of a given date string, s.
Returns the hours in a given date string, s.
Returns the minutes in a given date string, s.
Returns the month of a given date string, s.
Returns the number of days from January 1, 0000 and the current time in seconds as a double.
Returns the quarter that a given date string, s falls in.
Returns the seconds in a given string, s.
Pauses the current execution for n seconds.
Sets an internal clock.
Returns current time in seconds from the epoch January 1, 1970.
Calls to toc return the elapsed time since tic was called.
Returns the day of the week for the given date.
Returns the year of a given date string, s.
You've got questions? We've got answers!
Reference guides are available for functions and commands supported by OML, Tcl, and Python.
The Reference Guide contains documentation for all functions supported in the OpenMatrix language.
Returns current time in seconds from the epoch January 1, 1970.
Returns current time in seconds from the epoch January 1, 1970.
R = time
R = time()
R = 1.54948155e+09
© 2022 Altair Engineering, Inc. All Rights Reserved.
Intellectual Property Rights Notice | Technical Support | Cookie Consent