Skip to content

jcjolley/parse_kubectl_time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parse Kubectl Time

This is a simple rust program that takes relative time strings in the format output by kubectl and parses them into seconds

For example:

  • 2m10s -> 130
  • 1d2h -> 93600

I wrote this to use as part of a shell function that sorts my kubectl events by when they last occurred

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages