MCPcopy Create free account
hub / github.com/codealong-dev/ride-sharing / convertSecondsToMinutes

Function convertSecondsToMinutes

web/src/utils/math.ts:2–4  ·  view source on GitHub ↗
(seconds: number)

Source from the content-addressed store, hash-verified

1
2export function convertSecondsToMinutes(seconds: number) {
3 return `${Math.floor(seconds / 60)} minutes`
4}
5
6export function convertMetersToKilometers(meters: number) {
7 return `${(meters / 1000).toFixed(2)} km`

Callers 2

RiderTripOverviewFunction · 0.90
DriverListFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected