First pass at systime app
This commit is contained in:
10
content/extras/date/_index.md
Normal file
10
content/extras/date/_index.md
Normal file
@ -0,0 +1,10 @@
|
||||
---
|
||||
title: Systime Date Converter
|
||||
---
|
||||
|
||||
<div id="converter">
|
||||
<input type="text" class="systime">
|
||||
⇄
|
||||
<input type="datetime-local" class="date">
|
||||
</div>
|
||||
<script src="convert.js"></script>
|
||||
21
content/extras/date/convert.ts
Normal file
21
content/extras/date/convert.ts
Normal file
@ -0,0 +1,21 @@
|
||||
class Systime {
|
||||
year: number;
|
||||
dayOfYear: number;
|
||||
hundredths: number;
|
||||
|
||||
constructor(date: Date) {
|
||||
this.fromDate(date);
|
||||
}
|
||||
|
||||
fromDate(date: Date): void {
|
||||
}
|
||||
|
||||
toDate(): Date {
|
||||
}
|
||||
|
||||
fromString(str: string): void {
|
||||
}
|
||||
|
||||
toString(): string {
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user