{"id":15716438,"url":"https://github.com/geospace-code/sciencedates","last_synced_at":"2025-05-13T00:41:21.172Z","repository":{"id":57464372,"uuid":"81351748","full_name":"geospace-code/sciencedates","owner":"geospace-code","description":"Date conversions used in the sciences.","archived":false,"fork":false,"pushed_at":"2021-12-29T04:56:01.000Z","size":87,"stargazers_count":6,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T18:07:03.849Z","etag":null,"topics":["date-conversion","fortran","geoscience","julia","matlab","python"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/geospace-code.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":"2017-02-08T16:42:17.000Z","updated_at":"2023-04-18T05:36:47.000Z","dependencies_parsed_at":"2022-09-17T14:30:37.702Z","dependency_job_id":null,"html_url":"https://github.com/geospace-code/sciencedates","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geospace-code%2Fsciencedates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geospace-code%2Fsciencedates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geospace-code%2Fsciencedates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geospace-code%2Fsciencedates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geospace-code","download_url":"https://codeload.github.com/geospace-code/sciencedates/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253850841,"owners_count":21973667,"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":["date-conversion","fortran","geoscience","julia","matlab","python"],"created_at":"2024-10-03T21:45:38.355Z","updated_at":"2025-05-13T00:41:21.115Z","avatar_url":"https://github.com/geospace-code.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Science Dates \u0026 Times\n\n[![image](https://zenodo.org/badge/81351748.svg)](https://zenodo.org/badge/latestdoi/81351748)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/scivision/sciencedates.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/scivision/sciencedates/context:python)\n[![Actions Status](https://github.com/scivision/sciencedates/workflows/ci/badge.svg)](https://github.com/scivision/sciencedates/actions)\n[![PyPi Download stats](http://pepy.tech/badge/sciencedates)](http://pepy.tech/project/sciencedates)\n\nDate \u0026 time conversions used in the sciences.\nThe assumption is that datetimes are **timezone-naive**, as this is required in Numpy *et al* for `numpy.datetime64`.\n\n\n## Install\n\n```sh\npython -m pip install sciencedates\n```\n\n## Usage\n\n### Datetime =\u003e Year, DayOfYear\n\n```python\nimport sciencedates as sd\n\nT = '2013-07-02T12'\nyeardoy, utsec = sd.datetime2yd(T)\n```\n\nResults in year,DayOfYear; UTC fraction of day [seconds]\n\n\u003e (2013102, 72000.0)\n\n\n## Julia\n\nJulia [examples](./julia) are provided\n\n## Matlab / GNU Octave\n\nMatlab / GNU Octave [examples](./matlab) are provided\n\n## Fortran\n\nFortran [examples](./fortran) are provided.\nFor Python-like modern Fortran datetime, see\n[Datetime-Fortran](https://github.com/wavebitscientific/datetime-fortran).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeospace-code%2Fsciencedates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeospace-code%2Fsciencedates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeospace-code%2Fsciencedates/lists"}