@magmacomputing/tempo-plugin-finance
v1.0.3
Published
Tempo Community Plugin: Finance namespace and fiscal year utilities
Downloads
62
Maintainers
Readme
@magmacomputing/tempo-plugin-finance
A specialized namespace plugin for Tempo that provides fiscal year and financial date utilities.
👉 View the full documentation on our GitHub Pages
Installation
npm install @magmacomputing/tempo-plugin-financeUsage
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()); // falseDocumentation
Full documentation available at https://magmacomputing.github.io/magma/doc/9-plugins/finance.index.html.
Licensing
This is a Community plugin. It is completely free and open-source for personal and commercial use. No license token is required.
