mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
9 lines
168 B
JavaScript
9 lines
168 B
JavaScript
'use strict'
|
|
|
|
const moment = require('moment-timezone')
|
|
|
|
const formatTime = (tz, when) => {
|
|
return moment(when).tz(tz).format('HHmmss')
|
|
}
|
|
|
|
module.exports = formatTime
|