mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-24 04:23:30 +03:00
15 lines
238 B
Fish
15 lines
238 B
Fish
# RUN: %fish %s
|
|
|
|
function _time -a format
|
|
_tide_decolor (tide_time_format="$format" _tide_item_time)
|
|
end
|
|
|
|
# None
|
|
_time '' # CHECK:
|
|
|
|
# 24 Hour
|
|
_time %T # CHECK: {{\d\d:\d\d:\d\d}}
|
|
|
|
# 12 Hour
|
|
_time %r # CHECK: {{\d\d:\d\d:\d\d (A|P)M}}
|