-
-
Notifications
You must be signed in to change notification settings - Fork 0
PowerShell
mozrin edited this page Dec 14, 2025
·
1 revision
The PowerShell wrapper provides a convenient way to use Universal Timestamp in Windows environments. It wraps the uts-cli.exe binary.
- Build
uts-cli.exeusingcompile.batinwrappers/powershell. - Import the module:
Import-Module .\wrappers\powershell\universal_timestamp.ps1# Get current time
Get-UtNow
# Get nanoseconds
Get-UtNowNanos
# Parse string
ConvertFrom-UtIsoString "2024-12-14T12:00:00Z"
# Format nanoseconds
ConvertTo-UtIsoString 1734146000000000000© 2025 Moztopia. Portions of this code and documentation are copyrighted.
All Rights Reserved.