Function: parseTime()
parseTime(
raw):object
Decode a single TM value (max 14 bytes). Precision may be truncated from
the right (HH, HHMM, HHMMSS, HHMMSS.FFFFFF).
Parameters
raw
string
Returns
object
value
value:
DicomTime
Example
import { parseTime } from "@cosyte/dicom";
parseTime("133015.5").value.fractionalSeconds; // 0.5