La-Torreta-del-Drac/scenes/clock/day.gd
2025-04-09 18:43:34 +02:00

22 lines
412 B
GDScript

extends Label
const _weekday_converter: Dictionary[int, String] = {
0: 'Dg.',
1: 'Dl.',
2: 'Dm.',
3: 'Dc.',
4: 'Dj.',
5: 'Dv.',
6: 'Ds.',
}
func _process(delta: float) -> void:
var time: Dictionary = Time.get_date_dict_from_system()
var weekday: int = time['weekday']
var month: int = time['month']
var day: int = time['day']
text = "%s %02d/%02d" % [_weekday_converter[weekday], day, month]