MCPcopy Create free account
hub / github.com/circircir-circle/human_exist_device / parseTimeData

Method parseTimeData

mini_program/common/Tools.js:777–794  ·  view source on GitHub ↗
(time)

Source from the content-addressed store, hash-verified

775 }
776
777 parseTimeData(time) {
778 const SECOND = 1000
779 const MINUTE = 60 * SECOND
780 const HOUR = 60 * MINUTE
781 const DAY = 24 * HOUR
782 const days = Math.floor(time / DAY)
783 const hours = Math.floor((time % DAY) / HOUR)
784 const minutes = Math.floor((time % HOUR) / MINUTE)
785 const seconds = Math.floor((time % MINUTE) / SECOND)
786 const milliseconds = Math.floor(time % SECOND)
787 return {
788 days,
789 hours,
790 minutes,
791 seconds,
792 milliseconds
793 }
794 }
795
796 parseFormat(format, timeData) {
797 let {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected