Dimitry Ishenko
b3f7294103
date.sh: date::sub_* -> date::sub_*_from_now
...
Clean up & fix renamed functions.
2023-01-13 22:10:17 -05:00
Dimitry Ishenko
07b9f6b9c8
date.sh: clean up & fix date::sub_*_from
2023-01-13 22:10:17 -05:00
Dimitry Ishenko
2ca08a359c
date.sh: date::add_* -> date::add_*_to_now
...
Clean up & fix renamed functions.
2023-01-13 22:10:17 -05:00
Dimitry Ishenko
95f22f4b73
date.sh: clean up & fix date::add_seconds_to
2023-01-13 22:10:10 -05:00
Dimitry Ishenko
65161c167f
date.sh: clean up & fix date::add_minutes_to
2023-01-13 18:07:50 -05:00
Dimitry Ishenko
d0e2d058f2
date.sh: clean up & fix date::add_hours_to
2023-01-13 18:03:50 -05:00
Dimitry Ishenko
bd6cea6ece
date.sh: clean up & fix date::add_weeks_to
2023-01-13 17:52:24 -05:00
Dimitry Ishenko
fccfc7fbea
date.sh: clean up & fix date::add_years_to
2023-01-13 17:42:42 -05:00
Dimitry Ishenko
0d339aca92
date.sh: clean up & fix date::add_months_to
2023-01-13 17:40:02 -05:00
Dimitry Ishenko
3c33f6801d
date.sh: clean up & fix date::add_days_to
...
Add timezone, as the `date` program needs it in order for the `+ N days`
math to work correctly.
Make number of days required for better code readability.
2023-01-13 17:33:31 -05:00
Dimitry Ishenko
4146c42e39
date.sh: timestamp -> ts
2023-01-13 15:40:42 -05:00
Dimitry Ishenko
93b3cd9dc4
date.sh: clean up date::epoch
2023-01-13 15:40:11 -05:00
Dimitry Ishenko
6adfee73ed
date.sh: fix typos in function names
...
date::epoc -> date::epoch
date::add_*_from -> date::add_*_to
2023-01-13 15:34:21 -05:00
Dimitry Ishenko
1772727480
date.sh: clean up date::now
2023-01-13 12:43:00 -05:00
Dimitry Ishenko
26b42d20d1
date.sh: use local instead of declare
...
This punctuates that the variables inside functions are local.
2023-01-13 12:36:40 -05:00
Dimitry Ishenko
fa45027b3f
date.sh: simplify error reporting
...
Use (()) for arithmetic eval.
Don't pollute stdout with errors.
2023-01-13 12:33:24 -05:00
Dimitry Ishenko
facd25e3f4
collection.sh: clean up collection::some
2023-01-13 12:18:59 -05:00
Dimitry Ishenko
b64a8e1606
collection.sh: clean up collection::reject
2023-01-13 12:11:25 -05:00
Dimitry Ishenko
ae320ed6c9
collection.sh: clean up collection::map
2023-01-05 23:41:04 -05:00
Dimitry Ishenko
53d6e7b635
collection.sh: clean up collection::invoke
2023-01-05 23:41:04 -05:00
Dimitry Ishenko
cf440e0802
collection.sh: clean up collection::find
2023-01-05 23:41:04 -05:00
Dimitry Ishenko
fdfce4cd08
collection.sh: arg -> it
...
This is for Kotlin-style lambda expressions, eg:
collection::filter '[[ "$it" == "a" ]]' < <(...)
2023-01-05 23:41:04 -05:00
Dimitry Ishenko
7032b06f05
collection.sh: simplify few functions
2022-12-23 13:54:22 -05:00
Dimitry Ishenko
7dbe257144
collection.sh: consistent use of braces
2022-12-23 13:47:25 -05:00
Dimitry Ishenko
a674a666b1
check.sh: consistent use of braces
2022-12-23 13:43:47 -05:00