@magmacomputing/tempo-plugin-finance
A specialized namespace plugin for Tempo that provides fiscal year and financial date utilities.
Installation
bash
npm install @magmacomputing/tempo-plugin-financeUsage
typescript
import { Tempo } from '@magmacomputing/tempo';
import { FinanceNamespace } from '@magmacomputing/tempo-plugin-finance';
// Register the namespace
Tempo.extend(FinanceNamespace);
const t = new Tempo('2024-07-01');
// Evaluate static properties
console.log(t.finance.fiscalQuarter); // 3
console.log(t.finance.taxYear); // 2024
// Evaluate functional closures
console.log(t.finance.isFiscalYearStart()); // falseLicensing
This is a Community plugin. It is completely free and open-source for personal and commercial use. No license token is required.