{"id":25874261,"url":"https://github.com/pioz/stardate","last_synced_at":"2025-03-02T09:19:40.138Z","repository":{"id":12132610,"uuid":"14724431","full_name":"pioz/stardate","owner":"pioz","description":"Calculates the Star Trek stardate and vice versa.","archived":false,"fork":false,"pushed_at":"2022-02-09T11:51:41.000Z","size":8,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T15:17:26.366Z","etag":null,"topics":["ruby","star-trek","stardate"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/pioz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-11-26T17:47:05.000Z","updated_at":"2024-08-22T19:27:41.000Z","dependencies_parsed_at":"2022-07-21T16:18:33.612Z","dependency_job_id":null,"html_url":"https://github.com/pioz/stardate","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/pioz%2Fstardate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioz%2Fstardate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioz%2Fstardate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pioz%2Fstardate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pioz","download_url":"https://codeload.github.com/pioz/stardate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241482707,"owners_count":19969963,"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":["ruby","star-trek","stardate"],"created_at":"2025-03-02T09:19:39.670Z","updated_at":"2025-03-02T09:19:40.133Z","avatar_url":"https://github.com/pioz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Stardate\n\nCalculates the Star Trek stardate and vice versa (Star Trek: The Next\nGeneration convention).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'ruby-stardate'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ruby-stardate\n\n## Usage\n\n    2.0.0-p247 :001 \u003e require 'stardate'\n     =\u003e true\n\n    2.0.0-p247 :005 \u003e t = Time.now + 400.years\n     =\u003e 2413-11-26 18:35:34 +0100\n    2.0.0-p247 :006 \u003e t.to_stardate\n     =\u003e 90902.9\n\n    2.0.0-p247 :007 \u003e 1513.1.to_time\n     =\u003e 2324-07-06 10:44:32 +0200\n\n### Change the base date\n\nThe default base date is `2323-1-1 = 0.0`. You can switch to the other standard\nbase date `2005-1-1 = 58000.0` with\n\n```ruby\n  Stardate.set_base_date_to_2005\n```\n\nand switch back with\n\n```ruby\n  Stardate.set_base_date_to_2323\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpioz%2Fstardate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpioz%2Fstardate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpioz%2Fstardate/lists"}