25.2 Acquire the current time and date

Function: mbfl_date_current_year

Print the current year as digit string.

Function: mbfl_date_current_month

Print the current month as two–digits string.

Function: mbfl_date_current_day

Print the current day as two–digits string.

Function: mbfl_date_current_hour

Print the current hour as two–digits string.

Function: mbfl_date_current_minute

Print the current minute as two–digits string.

Function: mbfl_date_current_second

Print the current second as two–digits string.

Function: mbfl_date_current_date

Print the current date, using the format ‘%F’. Example:

mbfl_date_current_date
-| 2018-11-03
Function: mbfl_date_current_time

Print the current date, using the format ‘%T’. Example:

mbfl_date_current_time
-| 07:51:27

This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.