Follow

TimeFormats Module

The timeFormats module provides services to convert various time formats.

How to include

  1. timeFormats is automatically included with all angular recruiters via AngularDependencies.module.1.0.php

Usage

Methods:

toMilTime(time)

  • Accepts string of time "6:00 am"
  • Accepts string of minutes "965"
  • Accepts number of minutes 1080

returns "06:00", "16:05", "18:00",

 

to12HourTime(time)

  • Accepts string of time "16:00"
  • Accepts string of minutes "1020"
  • Accepts number of minutes 1400

returns "4:00 PM", "5:00 PM", "11:20 PM"

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Powered by Zendesk