Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datels

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datels

`datels` is a simple CLI that displays a list of dates line by line.

  • 1.0.1
  • PyPI
  • Socket score

Maintainers
1

datels

PyPI - Python Version PyPI - License PyPI codecov

datels is a simple CLI that displays a list of dates line by line.

Installation

To install datels with pip, run: pip install datels

Basic Usage

$ datels 1994-03-07 1994-03-10
1994/03/07
1994/03/08
1994/03/09
1994/03/10

Date format option

$ datels 1994-03-07 1994-03-10 --sep="-"
1994-03-07
1994-03-08
1994-03-09
1994-03-10

$ datels 1994-03-07 1994-03-10 --format "%c"
Mon Mar  7 00:00:00 1994
Tue Mar  8 00:00:00 1994
Wed Mar  9 00:00:00 1994
Thu Mar 10 00:00:00 1994

See strftime documentation for more information.

Inclusive option

$ datels 1994-03-07 1994-03-10 --inclusive both
1994/03/07
1994/03/08
1994/03/09
1994/03/10

$ datels 1994-03-07 1994-03-10 --inclusive left
1994/03/07
1994/03/08
1994/03/09

$ datels 1994-03-07 1994-03-10 --inclusive right
1994/03/08
1994/03/09
1994/03/10

Using in your python code not CLI

$ python
>>> from datels import list_dates
>>> dates = list_dates("1994-03-07", "1994-03-10", sep="-", inclusive="both")
>>> dates
['1994-03-07', '1994-03-08', '1994-03-09', '1994-03-10']
>>> # list_dates retuens list of string
>>> type(dates)
<class 'list'>
>>> type(dates[0])
<class 'str'>

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc