{"id":17095028,"url":"https://github.com/cfal/yawn","last_synced_at":"2025-04-12T23:13:52.976Z","repository":{"id":42575831,"uuid":"474339730","full_name":"cfal/yawn","owner":"cfal","description":"An alternative to sleep written in Rust that allows specifying a timestamp","archived":false,"fork":false,"pushed_at":"2022-06-11T11:18:56.000Z","size":16,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T23:13:47.378Z","etag":null,"topics":["chrono","rust","rust-cli","sleep","timestamp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cfal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-26T12:23:15.000Z","updated_at":"2024-08-14T21:04:52.000Z","dependencies_parsed_at":"2022-08-31T08:22:02.929Z","dependency_job_id":null,"html_url":"https://github.com/cfal/yawn","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfal%2Fyawn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfal%2Fyawn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfal%2Fyawn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cfal%2Fyawn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cfal","download_url":"https://codeload.github.com/cfal/yawn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248643006,"owners_count":21138355,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrono","rust","rust-cli","sleep","timestamp"],"created_at":"2024-10-14T14:25:31.425Z","updated_at":"2025-04-12T23:13:52.959Z","avatar_url":"https://github.com/cfal.png","language":"Rust","readme":"# yawn\n\nAn alternative to `sleep` written in Rust that allows specifying a timestamp and exit code.\n\n## Usage\n\n```\nyawn [OPTIONS] \u003cDURATION or TIMESTAMP\u003e\n\nOPTIONS:\n\n    -e, --exit-code NUM\n        Exit code, defaults to 0.\n\nDURATION or TIMESTAMP:\n\n    Durations are of the format:\n\n        any positive integer or float are interpreted as seconds (eg 123, 123.45)\n\n        a single string with 'd', 'h', 'm', 's', 'ms' as units, corresponding to days,\n        hours, minutes, seconds, and milliseconds. (eg 1d2h3m4s5ms, 1d15m)\n\n    Exact timestamps are of the format:\n\n        RFC3339                (eg 1996-12-19T16:39:57-08:00)\n        RFC2822                (eg Tue, 1 Jul 2003 10:52:37 +0200)\n        YYYY-mm-dd HH:MM:SS    [local time] (eg 2005-01-03 12:23:34)\n        YYYY-mm-dd HH:MM       (eg. 2005-01-03 12:23)\n\n    Inexact-timestamps are of the format:\n\n        HH:MM                  [24-hour format] (eg 14:23)\n        HH:MM:SS               [24-hour format] (eg 14:23:45)\n        HH:MM:SS.nnn           [24-hour format] (eg 14:23:45.678)\n        h:MM P                 [12-hour format] (eg 8:12 am)\n\n    Inexact timestamps always refer to next upcoming date.\n\nEXAMPLES:\n\n    yawn 1d2h3m4s\n\n    Sleep for 1 day, 2 hours, 3 minutes, and 4 seconds.\n\n    yawn '8:00 am'\n\n    Sleep until the upcoming 8 am.\n\n    yawn '2022-04-01T00:00:00Z'\n\n    Sleep until midnight of April 1st, 2022 UTC.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfal%2Fyawn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcfal%2Fyawn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcfal%2Fyawn/lists"}