10.3.17 getMinute (gets minute from time)
Syntax
getMinute [time]
Description
This command outputs the minute of time specified for argument with 2-digit character (numeric characters) from 00 to 59. If this argument is omitted, the current time is assumed.
Arguments
- time
-
This command specifies the character string that indicates time.
Syntax of time with absolute date in the date command can be specified for time (Example: hh:mm:ss, hhmm).
Output to the standard output
2-digit character string that indicates minute (numeric characters)
Return codes
Return code |
Meaning |
---|---|
0 |
Normal termination |
Not less than 1 |
Termination with an error |
Notes
Although the character string that can be specified for time is the same as that of the time format based on absolute date with the date command, whether the character string can be specified is not verified.
Examples
getMinute15:20:01 # "20" is output.