Skip to content

let fmt convert to/from unix (epoch) time#21

Merged
jftuga merged 1 commit intomainfrom
add-unix-time
Nov 18, 2024
Merged

let fmt convert to/from unix (epoch) time#21
jftuga merged 1 commit intomainfrom
add-unix-time

Conversation

@jftuga
Copy link
Copy Markdown
Owner

@jftuga jftuga commented Nov 17, 2024

Allows the fmt command to convert to & from unix time.

$ dtmate fmt "2024-11-16 14:01:02" "%s"
1731783662

$ dtmate fmt "1704085261" "%F %T"
2024-01-01 00:01:01
  • Also fixed small problem with dtmate fmt and command-line args error checking

@ccoVeille could you please review this PR? I always appreciate your insightful feedback. 😃

@jftuga jftuga merged commit 7118d1d into main Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants