diff --git a/README.md b/README.md index 3e0bbca..dfb20a6 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,17 @@ -# Semi-ATE's STDF library +# Semi-ATE's Date & Time library -**STDF** stands for **S**tandard **T**est **D**ata **F**ormat +[![GitHub](https://img.shields.io/github/license/Semi-ATE/STDF?color=black)](https://github.com/Semi-ATE/STDF/blob/main/LICENSE) +[![Conda](https://img.shields.io/conda/pn/conda-forge/Semi-ATE-STDF?color=black)](https://anaconda.org/conda-forge/Semi-ATE-STDF) +![Supported Python versions](https://img.shields.io/badge/python-%3E%3D3.7-black) -[![MIT License](https://img.shields.io/apm/l/atomic-design-ui.svg?)](https://github.com/Semi-ATE/STDF/blob/main/LICENSE) -![Python >= 3.7](https://img.shields.io/badge/Python-%3E%3D3.7-blue) [![CI](https://github.com/Semi-ATE/STDF/workflows/CI/badge.svg?branch=main)](https://github.com/Semi-ATE/STDF/actions?query=workflow%3ACI) [![codecov](https://codecov.io/gh/Semi-ATE/STDF/branch/main/graph/badge.svg?token=BAP0H9OMED)](https://codecov.io/gh/Semi-ATE/STDF) [![CD](https://github.com/Semi-ATE/STDF/workflows/CD/badge.svg)](https://github.com/Semi-ATE/STDF/actions?query=workflow%3ACD) + [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Semi-ATE/STDF?color=blue&label=GitHub&sort=semver)](https://github.com/Semi-ATE/STDF/releases/latest) [![PyPI](https://img.shields.io/pypi/v/Semi-ATE-STDF?color=blue&label=PyPI)](https://pypi.org/project/Semi-ATE-STDF/) ![Conda (channel only)](https://img.shields.io/conda/vn/conda-forge/Semi-ATE-STDF?color=blue&label=conda-forge) - - - - # Installation ## Stand alone @@ -48,17 +45,24 @@ $ pip install Semi-ATE # Usage examples ```python -from Semi_ATE.DT import DT, DTD +from Semi_ATE.DT import DT, TD now = DT() print(f"UTC time = {now}") print(f"local time = {DT(now.local()}") print(f"timezone = {now.tz}") print(f"daylight savings time = {now.dst}") -print(f"begin of week = {DT(now.bow())}") -print(f"end of week = {DT(now.eow()}") -print(f"begin of day = {DT(now.bod()}") -print(f"end of day = {DT(now.eod()}") +bow = DT(now.bow()) +print(f"begin of week = {bow}") +eow = DT(now.eow() +print(f"end of week = {eow}") +bod = DT(now.bod()) +print(f"begin of day = {bod}") +eod = DT(now.eod() +print(f"end of day = {eod}") + + + ```