{"id":17330386,"url":"https://github.com/voidint/date2unix","last_synced_at":"2025-03-27T05:44:44.462Z","repository":{"id":57596415,"uuid":"58342950","full_name":"voidint/date2unix","owner":"voidint","description":"Converts the date string to UNIX timestamp command-line tool.","archived":false,"fork":false,"pushed_at":"2016-12-18T13:31:08.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T11:12:52.557Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/voidint.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":"2016-05-09T02:30:39.000Z","updated_at":"2021-06-10T11:13:52.000Z","dependencies_parsed_at":"2022-09-26T19:52:54.985Z","dependency_job_id":null,"html_url":"https://github.com/voidint/date2unix","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidint%2Fdate2unix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidint%2Fdate2unix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidint%2Fdate2unix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/voidint%2Fdate2unix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/voidint","download_url":"https://codeload.github.com/voidint/date2unix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791932,"owners_count":20672669,"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":[],"created_at":"2024-10-15T14:51:06.658Z","updated_at":"2025-03-27T05:44:44.442Z","avatar_url":"https://github.com/voidint.png","language":"Go","readme":"# date2unix\nConvert date string to UNIX timestamp.\n\n# Installation\n```\ngo get -u github.com/voidint/date2unix\n```\n\n# How to use?\n- Output current time UNIX timestamp at system time zone.\n```\n$ date2unix --now\n1462761855\n```\n\n- Output the specified time UNIX timestamp at UTC time zone.\n```\n$ date2unix --layout \"2006-1-2 15:04:05\" -p --utc \"2016-10-10 01:01:01\"\n2016-10-10 01:01:01 =\u003e 1476061261\n```\n\n- Read date string form stdin\n```\n$ echo \"2016/10/10 01:01:01\" | date2unix\n1476032461\n\nor \n\n$ date2unix\n2016/10/10 01:01:01\n// Enter EOF by CTRL+D(Unix/Linux) or CTRL+Z(Win)\n1476032461\n```\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoidint%2Fdate2unix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoidint%2Fdate2unix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoidint%2Fdate2unix/lists"}