| Crates.io | parse_kubectl_time |
| lib.rs | parse_kubectl_time |
| version | 0.2.2 |
| created_at | 2022-06-10 22:59:07.467751+00 |
| updated_at | 2022-06-11 00:25:50.323571+00 |
| description | Parse time strings from kubectl commands in seconds, e.g., 2m10s -> 130 |
| homepage | |
| repository | |
| max_upload_size | |
| id | 603825 |
| size | 3,502 |
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