Functions§
- create_
dir - Create a directory & all parent directories if they don’t exist & return the name. Panic if an error occurs while creating the dir
- create_
or_ open_ file - Open a file for appending or create it if it doesn’t exist Panic on error, return the file handle
- datetime_
from_ str - datetime_
to_ readable_ str - format_
datetime - get_
date_ from_ arg - Returns a DateTime
given a date string If end
== true, the date returned has a time of 23:59:59 to support the range being inclusive so that 12-01..12-10 would include all sessions started on 12-10 - get_
file_ contents - get_
home_ dir - Return the value of $HOME or panic if it doesn’t exist
- get_
length_ hours - Returns the length in hours between the start & end time
- get_
metadata_ created - Get the created time or panic
- get_
start_ date - local_
to_ fixed_ offset - parse_
date_ range - parses string in
(..( )?)? format where date -> ‘today’ | yyyy-mm-dd | mm-dd returns the range (<earliest_tempus_date>, ), inclusive .. returns the range ( , ), inclusive .. returns the range ( , ), inclusive ‘today’ can be used in place of a date instead of typing today’s date a date without the year will search for this year - system_
time_ to_ datetime - Convert a SystemTime to chrono::DateTime