Giter VIP home page Giter VIP logo

godot-datetime's Introduction

๐Ÿ•ฐ๏ธ Godot Date Time

Made with Godot Pulse Checks

Datetime utils for Godot


Check out year of our lord for an example of it working in the wild!

๐Ÿ–Š๏ธ Usage

๐Ÿ“š API Documentation

var datetime = DateTime.now()
print(datetime.strftime("%D of %B, %Y %H:%M:%S"))
> "7th of january, 2022 12:04:30"

var tomorrow = datetime.add_days(1).day
print(tomorrow)
> 8

var next_month = datetime.add_months(1).month_name
print(next_month)
> "february"

var two_months_and_a_day = datetime.add_time({"day": 1, "month": 2})
print(two_months_and_a_day)
> "2022-03-08 12:04:30"

๐Ÿ˜ข Limitations

Currently not supported:

  • Timezones
  • Units smaller than a second
  • DateTime.from_isoformat() with ISOFormat date strings that don't look like YYYY-MM-DDTHH:MM:SS or YYYY-MM-DD HH:MM:SS (you can parse them using DateTime.strptime() if you know how they're formatted, though.)

๐Ÿ™ Credits

๐Ÿช This project was created with cookiecutter and the verillious/cookiecutter-godot project template.

๐ŸŽจ Icon created by Freepik - Flaticon

godot-datetime's People

Contributors

verillious avatar

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.