holy ravioli
This commit is contained in:
21
front/src/models/EventDate.ts
Normal file
21
front/src/models/EventDate.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
export class EventDate {
|
||||
|
||||
private readonly value : number;
|
||||
|
||||
public constructor(date : Date) {
|
||||
this.value = date.getTime();
|
||||
}
|
||||
|
||||
public getValue() : number{
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public toString() {
|
||||
this.value.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export interface EventDateState {
|
||||
value : number;
|
||||
}
|
||||
Reference in New Issue
Block a user