New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fcal

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fcal

display days before/after today

pipPyPI
Version
0.8.1
Maintainers
1

Installation

pip install fcal

Usage

# Print the last 10 days in the default format
fcal -b 10

# Print the last 10 days in MM-DD format 
fcal -b 10 -f '%m-%d'

# Print the last 10 days and next 10 days in local datetime format %c  
fcal -b 10 -a 10 -f '%c'

# Skip the dates until the next year skiping every 7 days.
fcal -a 365 -s 7

Date Directives

DirectiveMeaningExample
%AWeekday as locale’s abbreviated name.Sun, Mon,
%AWeekday as locale’s full name.Sunday, Monday, …, Saturday
%dDay of the month as a zero-padded decimal number.01, 02, …, 31
%-dDay of the month as a decimal number.1, 2, …, 31
%BMonth as locale’s full name.January, February, …, December
%mMonth as a zero-padded decimal number.01, 02, …, 12
%-mMonth as a decimal number.1, 2, …, 12
%yYear without century as a zero-padded decimal number.00, 01, …, 99
%YYear with century as a decimal number.2001, 2010, …, 2093
%%A literal '%' character.%

Development

To build the package locally, run

python -m build

Uploading to twine, which only package authors can do, is done using twine. To test the package locally, run pip install .

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