feat(project): init
This commit is contained in:
6
lib/quota-core.ts
Normal file
6
lib/quota-core.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function getCurrentPeriodKey(date = new Date()): string {
|
||||
const year = date.getUTCFullYear();
|
||||
const month = String(date.getUTCMonth() + 1).padStart(2, "0");
|
||||
|
||||
return `${year}-${month}`;
|
||||
}
|
||||
Reference in New Issue
Block a user