it seems Powershell v5.1 uses .Net Framework v4.0
[Environment]::Version
# Major Minor Build Revision
# ----- ----- ----- --------
# 4 0 30319 42000
and DateTimeOffset.FromUnixTimeSeconds method requires .Net Framework v4.6+ , so basically Powershell v5.1 should not have access to it. but ...
[DateTimeOffset]|Get-Member -Static -Name FromUnixTimeSeconds
# TypeName: System.DateTimeOffset
# Name MemberType Definition
# ---- ---------- ----------
# FromUnixTimeSeconds Method static System.DateTimeOffset FromUnixTimeSeconds(long seconds)
Why am I able to call it? Does it have something to do with C# AssemblyVersion & AssemblyFileVersion?