function dayStartEpochMs
dayStartEpochMs(
date: string,
tz: string,
): number

The epoch-ms instant of the START of a calendar day (00:00 local time) in the given timezone. Used to turn a YYYY-MM-DD filter bound into the integer occurred_at bound the ledger queries compare against, so a day range is interpreted in the operator's own timezone rather than UTC.

Parameters

date: string
tz: string

Return Type

number

Usage

import { dayStartEpochMs } from "docs/utilities.ts";