date
Returns the current date as a string in the format DD-MMM-YYYY.
Syntax
R = date()
Outputs
- R
- Current date is represented as a string in the format DD-MMM-YYYY.
Example
date
R = 10-Jan-2015
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.
Changes the current directory to dir.
Changes the current directory to dir.
Returns the current cputime used by Activate.
Create a distributable encrypted file to be used with Compose Light. The file is automatically recognized by the operating system as a Compose Light file.
Returns the current date as a string in the format DD-MMM-YYYY.
Deletes the file(s), f, or a graphic object, h.
Records all commands and outputs of an interactive session to a file. If no arguments are passed, the diary state is toggled. To save outputs when running a script (non-interactive session), use outputlog.
Directory listing of the current or specified directory.
Executes a dos command on Windows.
Encrypts a OML file.
Returns the path separator, dependent on the system.
Creates a path with the directory and sub-directories under dir.
Returns the current process ID.
Displays information and contents of file(s) or directories.
Creates an absolute path with input name, without checks made for the existance of the path on disk.
Creates the directory newdir in the current working directory by default.
Records all outputs to a file. If no arguments are passed, the outputlog state is toggled.
Removes the directory dir.
Opens the user startup script for editing (GUI application only).
Shows the path to the user startup script.
Executes the shell command stringCommand. If executed in 'sync' mode or without additional inputs, the application waits until the execution is complete. If executed in 'async' mode, stringCommand is executed in a detached thread and control is returned to the application immediately.
Executes the unix shell command stringCommand.
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 the current date as a string in the format DD-MMM-YYYY.
Returns the current date as a string in the format DD-MMM-YYYY.
R = date()
date
R = 10-Jan-2015
© 2022 Altair Engineering, Inc. All Rights Reserved.
Intellectual Property Rights Notice | Technical Support | Cookie Consent