dotnet-timestamp 0.4.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global dotnet-timestamp --version 0.4.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local dotnet-timestamp --version 0.4.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-timestamp&version=0.4.0
                    
nuke :add-package dotnet-timestamp --version 0.4.0
                    

dotnet-timestamp

dotnet-timestamp is a .NET global tool that prints timestamps and converts them across time zones from the command line. The installed command name is dtstamp.

Install

dotnet tool install -g dotnet-timestamp

Usage

  • Show the current time (defaults to UTC and round-trip format):
      dtstamp now
    
  • Use a custom format and time zone (C# standard format strings, DateTimeOffset time zone IDs):
      dtstamp now --format "yyyy-MM-dd HH:mm:ss" --timezone Asia/Tokyo
    
  • List available time zones on the system:
      dtstamp timezone --list
    
  • Convert a timestamp between time zones:
      dtstamp convert --datetime "2024-09-01T12:00:00" --from UTC --to America/New_York --format "yyyy-MM-dd HH:mm:ss zzz"
    
  • Convert a datetime to Unix timestamp (seconds since 1970-01-01 00:00:00 UTC):
      dtstamp unix --datetime "2024-09-01T12:00:00Z"
    
  • Get the current Unix timestamp:
      dtstamp unix
    

The default command runs now.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 117 1/31/2026
0.6.1 99 1/31/2026
0.4.1 102 1/31/2026
0.4.0 95 1/31/2026
0.3.1 99 1/14/2026
0.3.0 102 1/13/2026