adhan-extended
Version:
High precision Islamic prayer time library (extended)
14 lines (12 loc) • 424 B
JavaScript
export default class TimeComponents {
constructor(num) {
this.hours = Math.floor(num);
this.minutes = Math.floor((num - this.hours) * 60);
this.seconds = Math.floor((num - (this.hours + this.minutes / 60)) * 60 * 60);
return this;
}
utcDate(year, month, date) {
return new Date(Date.UTC(year, month, date, this.hours, this.minutes, this.seconds));
}
}
//# sourceMappingURL=TimeComponents.js.map