UNPKG

ojp-sdk-legacy

Version:

OJP (Open Journey Planner) Javascript SDK (legacy version)

14 lines (13 loc) 535 B
import { TreeNode } from "../xml/tree-node"; export declare class Duration { hours: number; minutes: number; totalMinutes: number; constructor(hours: number, minutes: number); static initWithTreeNode(parentTreeNode: TreeNode, nodeName?: string): Duration | null; static initFromDurationText(durationS: string | null): Duration | null; static initFromTotalMinutes(totalMinutes: number): Duration; formatDuration(): string; plus(otherDuration: Duration): Duration; asOJPFormattedText(): string; }