vmsutil

Scanco / VMS compatibility.

This module implements additional compatibility utilities for Scanco / VMS related data formats.

vmsutil.format_vms_style_time(dt: datetime) str

Format a date time as a VMS style date time string (e.g. “24-OCT-2007 11:23:55.19”)

vmsutil.from_vms_string(b: bytes) str

Decode a fixed size VMS / Fortran string.

vmsutil.from_vms_time(vms_time: int) datetime

Convert from VMS time: 64-bit number of 100 nanosecond intervals (ten million units per second) since the epoch.

vmsutil.vax_to_ieee_float32(i: int) float

Convert an integer representing a VAX floating point number to IEEE 32-bit format.

vmsutil.vax_to_ieee_float64(b: bytes) float

Convert an integer representing a VAX floating point number to IEEE 64-bit format.