@siva-sub/mcp-public-transport
Version:
A Model Context Protocol server for Singapore transport data with real-time information and routing
18 lines (17 loc) • 632 B
TypeScript
import { SingaporeTimeResult, OneMapTimeFormat, RushHourInfo } from '../types/time.js';
export declare class SingaporeTimeService {
private readonly timezone;
private readonly businessHours;
private readonly rushHours;
getCurrentTime(): SingaporeTimeResult;
formatForOneMap(date: Date): OneMapTimeFormat;
private formatDateForOneMap;
private formatTimeForOneMap;
private isBusinessHours;
private isRushHour;
private isWeekend;
getRushHourInfo(date?: Date): RushHourInfo;
getNextBusinessHours(date?: Date): string;
fromUTC(utcDate: Date): Date;
getSingaporeOffset(): string;
}