rokojori_action_library/Runtime/Time/TimeTool.cs

35 lines
512 B
C#
Raw Normal View History

2026-05-22 12:25:02 +00:00
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System;
using Godot;
using Rokojori.Extensions;
namespace Rokojori;
[RokojoriActionCoreExport]
public static class TimeTool
{
#if ROKOJORI_ACTION_CORE_GD
public static float Now()
{
/*
return Time.get_unix_time_from_system()
*/
GDGlue.CommentToGD();
}
#else
public static float Now()
{
return new DateTimeOffset( DateTime.Now ).ToUnixTimeSeconds();
}
#endif
}