db get the db handler from MongoDB
db
save will commit the current state of the TimeEntry to the database.
save
TimeEntry
duration returns the time between this entry and the next.
duration
find will return a single document. The query will use the provided _id.
find
_id
$config
%options
search will return an array of TimeEntry that fit the given %options.
search
%options can include the following:
query
This is the query syntax available via MongoDB::Collection.
sort
If present, the results will be sorted via the hashref given by this option.
limit
If present, the results will limited to the number provided.
last_entry will return the last TimeEntry in the db.
last_entry
TO_JSON will return the entry as a JSON convertible hash.
TO_JSON
To install App::Jiffy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Jiffy
CPAN shell
perl -MCPAN -e shell install App::Jiffy
For more information on module installation, please visit the detailed CPAN module installation guide.