Skip to content

Commit

Permalink
add some comment on foreign code
Browse files Browse the repository at this point in the history
  • Loading branch information
PeronGH committed Sep 7, 2022
1 parent 2e41af8 commit 09ff119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 16,7 @@ type DateArray = number[];
export type DateData = DateArray | Date;

// The following code is copied from https://github.com/adamgibbons/ics/blob/master/src/utils/format-date.js
// Tiny modification is done to make it compatible with typescript

const pad = (n: number) => (n < 10 ? `0${n}` : `${n}`);

Expand Down

0 comments on commit 09ff119

Please sign in to comment.