- Requirements
- Send Msg to Passeggeri
This commit is contained in:
Paolo Arena
2020-03-10 21:42:30 +01:00
parent 2f283d0710
commit 3f6ffc973a
66 changed files with 1670 additions and 547 deletions

View File

@@ -1,26 +1,25 @@
import moment from 'moment';
import 'moment/locale/fr';
import moment from 'moment'
import 'moment/locale/fr'
moment.locale('fr')
const monthsStrings = ['Janvier','Fevrier','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'];
const monthsStrings = ['Janvier', 'Fevrier', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre']
export class DateMoving {
public date: moment.Moment;
public hour: string;
public number: number;
public month: string;
public year: number;
public date: moment.Moment
public hour: string
public number: number
public month: string
public year: number
constructor(time: number) {
this.date = moment(time * 1000);
this.hour = `${this.date.format('HH:mm')}`;
this.number = this.date.date();
this.year = this.date.year();
this.month = monthsStrings[this.date.month()];
this.date = moment(time * 1000)
this.hour = `${this.date.format('HH:mm')}`
this.number = this.date.date()
this.year = this.date.year()
this.month = monthsStrings[this.date.month()]
}
fullString() {
return this.date.format('Do MMMM YYYY, HH:mm');
public fullString() {
return this.date.format('Do MMMM YYYY, HH:mm')
}
}
}