The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Dochazka::REST::Util::Timestamp - date/time-related utilities

VERSION

Version 0.073

SYNOPSIS

Date/time-related utilities

    use App::Dochazka::REST::Util::Timestamp;

    ...

EXPORTS

This module provides the following exports:

$today (string), e.g. '2014-07-09'
$today_ts (string), e.g. '2014-07-09 00:00:00'
$yesterday (string), e.g. '2014-07-08'
$yesterday_ts (string), e.g. '2014-07-08 00:00:00'
$tomorrow (string), e.g. '2014-07-10'
$tomorrow_ts (string), e.g. '2014-07-10 00:00:00'
tsrange_equal (function)

FUNCTIONS

subtract_days

Given a timestamp and an integer n, subtract n days.

tsrange_equal

Given a database handle and two strings that might be equal tsranges, consult the database and return the result (true or false).

AUTHOR

Nathan Cutler, <presnypreklad@gmail.com>