mirror of
https://github.com/armbian/bash-util.git
synced 2026-01-06 10:37:49 -08:00
Added date functions
This commit is contained in:
@@ -5,3 +5,4 @@ source src/string.sh
|
||||
source src/variable.sh
|
||||
source src/file.sh
|
||||
source src/misc.sh
|
||||
source src/date.sh
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
#https://github.com/bkrem/make-toc.sh/blob/master/make-toc.sh
|
||||
#https://gitlab.com/pedrolab/doctoc.sh/-/blob/master/doctoc.sh
|
||||
_usage() {
|
||||
printf "
|
||||
Script to autogenerate markdown based on bash source code.\n
|
||||
|
||||
769
src/date.sh
Normal file
769
src/date.sh
Normal file
File diff suppressed because it is too large
Load Diff
@@ -25,7 +25,7 @@ file::make_temp_file() {
|
||||
}
|
||||
|
||||
# @description Get only the filename from string path.
|
||||
|
||||
#
|
||||
# @example
|
||||
# echo "$(file::name "/path/to/test.md")"
|
||||
# #Output
|
||||
@@ -43,7 +43,7 @@ file::name() {
|
||||
}
|
||||
|
||||
# @description Get the basename of file from file name.
|
||||
|
||||
#
|
||||
# @example
|
||||
# echo "$(file::basename "/path/to/test.md")"
|
||||
# #Output
|
||||
|
||||
Reference in New Issue
Block a user