Function: parseDateTime()
parseDateTime(
raw):object
Decode a single DT value. nonstandardOffset is true when a UTC
offset suffix is present but malformed / out of range, signalling the
caller to emit DICOM_DT_NONSTANDARD_OFFSET.
Parameters
raw
string
Returns
object
nonstandardOffset
nonstandardOffset:
boolean
value
value:
DicomDateTime
Example
import { parseDateTime } from "@cosyte/dicom";
parseDateTime("20240115133015+0100").value.offsetMinutes; // 60