MCPcopy Index your code
hub / github.com/flyfloor/react-component / initTime

Function initTime

component/TimeInput.js:18–23  ·  view source on GitHub ↗
(val = this.props.value)

Source from the content-addressed store, hash-verified

16 },
17
18 initTime(val = this.props.value){
19 const {simple} = this.props;
20 let {hour, min, sec} = timeStr2Obj(val, { simple });
21 let value = this.formatValue(hour, min, sec);
22 return {hour, min, sec, value}
23 },
24
25 formatValue(hour, min, sec){
26 return this.props.simple ? `${hour}:${min}` : `${hour}:${min}:${sec}`

Callers

nothing calls this directly

Calls 1

timeStr2ObjFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…