Home > sncf.js > hourNativiaToHour
hourNativiaToHour() function 
Transform a navitia date to a moment object (format: HHmmss to HH:mm:ss)
Signature:
typescript
export declare function hourNativiaToHour(data: string, PassError?: boolean): string;Parameters 
| Parameter | Type | Description | 
|---|---|---|
| data | string | The navitia date | 
| PassError | boolean | (Optional) If true, return null instead of throwing an error | 
string