About When

When is a powerful date and time library for developers. It provides a simple and intuitive API for working with dates, times, and intervals in various programming languages.


Date and Time Manipulation

With When, you can easily perform various operations on dates and times, including:

  • Adding or subtracting days, months, or years
  • Comparing dates and times
  • Formatting dates and times
  • Converting dates and times to different time zones
  • And more!

Intervals and Durations

When provides powerful tools for working with intervals and durations. You can easily calculate the difference between two dates or times, add or subtract intervals, and perform advanced calculations with durations.

Supported Languages

When supports multiple programming languages, including:

  • JavaScript
  • Python
  • Ruby
  • Java
  • PHP
  • .NET
  • And more!

Getting Started

To start using When in your project, follow these steps:

  1. Install When by running the package manager command specific to your programming language. For example:

npm install when-js // for JavaScript
pip install python-when // for Python
gem install when-rb // for Ruby

  1. Import the When library into your project:

// for JavaScript
import when from 'when-js';

# for Python
import when

# for Ruby
require 'when'

  1. Start using the various date and time functions provided by When. Refer to the documentation and examples for detailed usage instructions.


For detailed instructions on how to use When in your specific programming language, refer to the official documentation:

When Documentation

Community and Support

If you have any questions, need assistance, or want to contribute to the When project, please get involved in our community:

  • Official When forum: [link]
  • GitHub repository: [link]
  • Slack channel: [link]


We welcome contributions from the community! If you want to contribute to When, please follow the guidelines outlined in our contributing documentation:

Contribution Guidelines


When is open source software licensed under the [License Name]. Refer to the project repository for more details.

View License