Git Product home page Git Product logo

python-datetime-machine's People

Contributors

develmaycare avatar

Watchers

 avatar  avatar

python-datetime-machine's Issues

Accept Date String as Input

It often happens that a string (or unicode) is available as a value before it becomes a date or time. It would be nice of DateTime recognized a string as a date (or datetime) and converted it on the fly.

Add Decrement to DateTime

Add a decrement() method to the DateTime class. It works the same as increment but in reverse. The method would save the user some time whenever reversing a datetime is required.

Compare Current DateTime With Another

Implement is_same(self, dt, precision=None) to compare _current_dt with the given datetime at runtime. If precision is given, it should be one of seconds, minutes, hours, or days which controls what level of matching is used.

Allow Check if DateTime in Quarter

Implement in_quarter(quarter=None) method to see if the _current_dt is in the current quarter or within the given quarter if supplied as an argument.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.