Rocky_Mountain_Vending/.pnpm-store/v10/files/fd/508b9be00276bd65a805c8f849f65b95b1c95862628ef4697c45b3aaa27d84928ada64861dc13307e05476cee661605af03d3a0919aa8fb1ad77ce6a21827a
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

39 lines
935 B
Text

"use strict";
exports.startOfYesterday = startOfYesterday;
var _index = require("./constructNow.cjs");
/**
* The {@link startOfYesterday} function options.
*/
/**
* @name startOfYesterday
* @category Day Helpers
* @summary Return the start of yesterday.
* @pure false
*
* @typeParam ContextDate - The `Date` type of the context function.
*
* @param options - An object with options
*
* @description
* Return the start of yesterday.
*
* @returns The start of yesterday
*
* @example
* // If today is 6 October 2014:
* const result = startOfYesterday()
* //=> Sun Oct 5 2014 00:00:00
*/
function startOfYesterday(options) {
const now = (0, _index.constructNow)(options?.in);
const year = now.getFullYear();
const month = now.getMonth();
const day = now.getDate();
const date = (0, _index.constructNow)(options?.in);
date.setFullYear(year, month, day - 1);
date.setHours(0, 0, 0, 0);
return date;
}