hightime


Namehightime JSON
Version 0.2.2 PyPI version JSON
download
home_pagehttps://github.com/ni/hightime
SummaryHightime Python API
upload_time2024-04-04 16:36:04
maintainerNational Instruments
docs_urlNone
authorNational Instruments
requires_pythonNone
licenseMIT
keywords hightime
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Hightime

## Overview

Hightime allows for up to yoctosecond precision replacements for the datetime datetime
and timedelta types.

## Installation

Hightime can be installed by cloning the master branch and then in a command
line in the directory of setup.py run:

```bash
pip install --pre .
```

Or by installing from PyPI using:

```bash
pip install hightime
```

## Examples

```python
>>> from hightime import datetime
>>> from hightime import timedelta

>>> high_noon = datetime(
...   year=1952,
...   month=7,
...   day=24,
...   hour=12,
...   minute=0,
...   second=30,
...   microsecond=0,
... )

>>> print(high_noon)
1952-07-24 12:00:30

>>> hesitation = timedelta(microseconds=10, femtoseconds=203456)

>>> print(hesitation)
0:00:00.000010000203456

>>> reaction = high_noon + hesitation

>>> print(reaction)
1952-07-24 12:00:30.000010000203456

>>> print(high_noon + high_noon)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for +: 'datetime' and 'datetime'

>>> print(hesitation * 2)
0:00:00.000020000406912

```

See the [readthedocs page](http://hightime.readthedocs.io/en/latest/) for more detailed
examples and documentation.

## License

Hightime is licensed under an MIT-style license.

See [LICENSE](https://github.com/ni/hightime/blob/master/LICENSE)
for details about how hightime is licensed.

Other incorporated projects may be licensed under different licenses. All
licenses allow for non-commercial and commercial use.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ni/hightime",
    "name": "hightime",
    "maintainer": "National Instruments",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "opensource@ni.com",
    "keywords": "hightime",
    "author": "National Instruments",
    "author_email": "opensource@ni.com",
    "download_url": null,
    "platform": null,
    "description": "# Hightime\n\n## Overview\n\nHightime allows for up to yoctosecond precision replacements for the datetime datetime\nand timedelta types.\n\n## Installation\n\nHightime can be installed by cloning the master branch and then in a command\nline in the directory of setup.py run:\n\n```bash\npip install --pre .\n```\n\nOr by installing from PyPI using:\n\n```bash\npip install hightime\n```\n\n## Examples\n\n```python\n>>> from hightime import datetime\n>>> from hightime import timedelta\n\n>>> high_noon = datetime(\n...   year=1952,\n...   month=7,\n...   day=24,\n...   hour=12,\n...   minute=0,\n...   second=30,\n...   microsecond=0,\n... )\n\n>>> print(high_noon)\n1952-07-24 12:00:30\n\n>>> hesitation = timedelta(microseconds=10, femtoseconds=203456)\n\n>>> print(hesitation)\n0:00:00.000010000203456\n\n>>> reaction = high_noon + hesitation\n\n>>> print(reaction)\n1952-07-24 12:00:30.000010000203456\n\n>>> print(high_noon + high_noon)\nTraceback (most recent call last):\n  File \"<stdin>\", line 1, in <module>\nTypeError: unsupported operand type(s) for +: 'datetime' and 'datetime'\n\n>>> print(hesitation * 2)\n0:00:00.000020000406912\n\n```\n\nSee the [readthedocs page](http://hightime.readthedocs.io/en/latest/) for more detailed\nexamples and documentation.\n\n## License\n\nHightime is licensed under an MIT-style license.\n\nSee [LICENSE](https://github.com/ni/hightime/blob/master/LICENSE)\nfor details about how hightime is licensed.\n\nOther incorporated projects may be licensed under different licenses. All\nlicenses allow for non-commercial and commercial use.\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Hightime Python API",
    "version": "0.2.2",
    "project_urls": {
        "Homepage": "https://github.com/ni/hightime"
    },
    "split_keywords": [
        "hightime"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6bf679c14ef38f75a2a554ac4e0c285d6c23a142fc37bae6633ef46140c61e44",
                "md5": "743b5065767d56692d4e897048ece0cc",
                "sha256": "5109a449bb3a75dbf305147777de71634c91b943d47cfbee18ed2f34a8307e0b"
            },
            "downloads": -1,
            "filename": "hightime-0.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "743b5065767d56692d4e897048ece0cc",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9705,
            "upload_time": "2024-04-04T16:36:04",
            "upload_time_iso_8601": "2024-04-04T16:36:04.452259Z",
            "url": "https://files.pythonhosted.org/packages/6b/f6/79c14ef38f75a2a554ac4e0c285d6c23a142fc37bae6633ef46140c61e44/hightime-0.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-04 16:36:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ni",
    "github_project": "hightime",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "hightime"
}
        
Elapsed time: 0.38480s