Skip to content

Conversation

@senioritaelizabeth
Copy link

me when hello haii :3

Example:

package engine;

import gdscript.UntypedArray;

class TestDate extends Node {
	override function _ready() {
		var date = Date.now();
		trace("Date Now: " + date.toString() + " - " + date.getTime() + " - " + date.getFullYear() + "/" + date.getMonth() + "/" + date.getDate() + " "
			+ date.getHours() + ":" + date.getMinutes() + ":" + date.getSeconds());
		var date2 = new Date(2024, 5, 1, 0, 0, 0);
		trace("Date Exactly: " + date2.toString() + " - (expected 2024-06-01 00:00:00)");

		var args:Array<String> = [];
		var r:UntypedArray = cast Sys.args();
		for (i in r) {
			args.push(i);
		}
		trace("Args: " + args.join(", "));
	}
}

out:

Godot Engine v4.6.stable.official.89cea1439 - https://godotengine.org
Vulkan 1.4.312 - Forward+ - Using Device #0: NVIDIA - NVIDIA GeForce GTX 1050 Ti

source/engine/TestDate.hx:9: Date Now: 2026-02-09 16:45:55 - 1770655555007.0 - 2026/1/9 16:45:55
source/engine/TestDate.hx:12: Date Exactly: 2024-06-01 00:00:00 - (expected 2024-06-01 00:00:00)
source/engine/TestDate.hx:19: Args: --scene, res://misc/test_date.tscn
--- Debugging process stopped ---

@SomeRanDev
Copy link
Owner

Huh, I'm shocked I Sys.args still wasn't done, guess I forgot. Looks good, but I'll have to ask you to keep the code style consistent with the rest of the project.

Therefore, please add spaces between colons and types, and revert all the style changes made in Sys.hx, thanks!

Copy link
Owner

@SomeRanDev SomeRanDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove da // []

@SomeRanDev SomeRanDev self-requested a review February 10, 2026 07:44
@SomeRanDev
Copy link
Owner

(sorry idk wtf I'm doing with reviews, I'm on mobile rn 😭😭)

@SomeRanDev
Copy link
Owner

OH IMPORTANT!! This PR is pushing into the nightly branch, but it needs to push on to main.

Nightly is a branch that is automatically generated from main and shouldn't be directly contributed to!

I'm not sure if you're able to fix this... you might have to close and open a new PR but I'm not sure?

@galleniz
Copy link

Okie dokie one momento

@JonkIsKindaCool
Copy link

me gustan macros

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants