ajout du type mysql pour parse_date
This commit is contained in:
parent
abd197b843
commit
7817ebf8d1
|
@ -1 +1 @@
|
|||
35
|
||||
36
|
||||
|
|
|
@ -868,12 +868,9 @@ function parse_date() {
|
|||
}')"
|
||||
esac
|
||||
case "$type" in
|
||||
d|date)
|
||||
awk '{ print strftime("%d/%m/%Y", $0 + 0) }' <<<"$value"
|
||||
;;
|
||||
l|ldap)
|
||||
awk '{ print strftime("%Y%m%d%H%M%S+0400", $0 + 0) }' <<<"$value"
|
||||
;;
|
||||
d|date) awk '{ print strftime("%d/%m/%Y", $0 + 0) }' <<<"$value";;
|
||||
l|ldap) awk '{ print strftime("%Y%m%d%H%M%S+0400", $0 + 0) }' <<<"$value";;
|
||||
m|mysql) awk '{ print strftime("%Y-%m-%d", $0 + 0) }' <<<"$value";;
|
||||
*)
|
||||
rawecho "$value"
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue