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.
New to Activate? Learn the basics here.
Start using Activate with our interactive tutorials.
Learn about the features and functionality available in Activate.
Explore the Extended Definitions, OML Guides, Block Library, API Guide and Glossary.
PDF file with in-depth information on key topics in the User's Guide.
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.
Describes all of the blocks in the installed Activate library.
Provides information about developing and simulating models through the Activate Application Program Interface.
Key terms associated with the software.
You've got questions? We've got answers!
Explore the Extended Definitions, OML Guides, Block Library, API Guide and Glossary.
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