소스 검색

Start working on date utility service

arvid-e 7 달 전
부모
커밋
88f1deb773
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      apps/app/src/server/routes/contributions.ts

+ 8 - 0
apps/app/src/server/routes/contributions.ts

@@ -0,0 +1,8 @@
+// !!
+// not sure where to put the utility functions
+// so put them here temporarely
+
+export const getCurrentWeekNumber = (date: Date) => {
+  const d = new Date(Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()));
+
+};