LocalTime

An asset by nekofleet
The page banner background of a mountain and forest
LocalTime hero image

Quick Information

0 ratings
LocalTime icon image
nekofleet
LocalTime

A class for local time.Not compatible with DST.How to use# Create objectvar t = LocalTime.now()# Setter / Gettert.day = 15print(t.month)# Add timet.add_days(100)t.hour += 48# Formatprint(t.format("{lweekday}, {month}/{day}/{year}"))

Supported Engine Version
4.0
Version String
1.0.0
License Version
CC0
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

addon icon LocalTime for Godot Engine 4

A class for local time.
Not compatible with DST.

How to install

(1) Download ZIP file

[ Code ](green button) > Download ZIP
(If you want all files, please use git clone)

(2) Copy file

Copy from (unzipped file)/addons/local_time/local_time.gd
to (your project)/(anywhere)/

How to use

# Create object
var t = LocalTime.now()
# Setter / Getter
t.day = 15
print(t.month)
# Add time
t.add_days(100)
t.hour += 48
# Format
print(t.format("{lweekday}, {month}/{day}/{year}"))

See also class documents.
Script tab > Search Help > LocalTime

Versions

  • 1.0.0: First version.

A class for local time.
Not compatible with DST.

How to use
# Create object
var t = LocalTime.now()
# Setter / Getter
t.day = 15
print(t.month)
# Add time
t.add_days(100)
t.hour += 48
# Format
print(t.format("{lweekday}, {month}/{day}/{year}"))

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
LocalTime icon image
nekofleet
LocalTime

A class for local time.Not compatible with DST.How to use# Create objectvar t = LocalTime.now()# Setter / Gettert.day = 15print(t.month)# Add timet.add_days(100)t.hour += 48# Formatprint(t.format("{lweekday}, {month}/{day}/{year}"))

Supported Engine Version
4.0
Version String
1.0.0
License Version
CC0
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers