
- Rexx Tutorial
- Rexx - Home
- Rexx - Overview
- Rexx - Environment
- Rexx - Installation
- Rexx - Installation of Plugin-Ins
- Rexx - Basic Syntax
- Rexx - Datatypes
- Rexx - Variables
- Rexx - Operators
- Rexx - Arrays
- Rexx - Loops
- Rexx - Decision Making
- Rexx - Numbers
- Rexx - Strings
- Rexx - Functions
- Rexx - Stacks
- Rexx - File I/O
- Rexx - Functions For Files
- Rexx - Subroutines
- Rexx - Built-In Functions
- Rexx - System Commands
- Rexx - XML
- Rexx - Regina
- Rexx - Parsing
- Rexx - Signals
- Rexx - Debugging
- Rexx - Error Handling
- Rexx - Object Oriented
- Rexx - Portability
- Rexx - Extended Functions
- Rexx - Instructions
- Rexx - Implementations
- Rexx - Netrexx
- Rexx - Brexx
- Rexx - Databases
- Handheld & Embedded
- Rexx - Performance
- Rexx - Best Programming Practices
- Rexx - Graphical User Interface
- Rexx - Reginald
- Rexx - Web Programming
- Rexx Useful Resources
- Rexx - Quick Guide
- Rexx - Useful Resources
- Rexx - Discussion
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Rexx - TIME
This method returns the local time in the 24-hour clock format as shown in the following program.
hh:mm:ss (hours, minutes, and seconds)
Syntax
TIME(options)
Parameters
Options − This is the options for formatting the time value. They can be anyone of the following options −
Civil − This parameter returns the time in the format () wherein hh is hours, mm is minutes and xx is seconds
Elapsed − This parameter returns the number of seconds and microseconds since the elapsed-time clock was started or reset
Full − This parameter returns the number of microseconds since the date 1 January 0001
Hours − This parameter returns the number of hours that have passed since midnight
Minutes − This parameter returns the number of minutes that have passed since midnight
Normal − This parameter returns the time in the default format hh:mm:ss
Offset − This parameter returns the offset of the local time from UTC in microseconds.
Return Value
This method returns the local time in the 24-hour clock format − hh:mm:ss (hours, minutes, and seconds).
Example
/* Main program */ say TIME() say TIME("C") say TIME("H")
When we run the above program we will get the following result. This depends on the current time on the system.
The following program is just an example.
Output
10:54:12 10:54am 10