Skip to main content

BOOT_EXPR_PS1

Constant BOOT_EXPR_PS1 

Source
pub const BOOT_EXPR_PS1: &str = "[math]::Floor([DateTimeOffset]::new((Get-CimInstance Win32_OperatingSystem).LastBootUpTime).ToUnixTimeSeconds() / 60) * 60";
Expand description

The spec’s boot value: LastBootUpTime as epoch seconds truncated to the minute (the same expression SystemProbe::boot_id runs).