Set exact time of day and night time?

Can you add an option where we can set the time where for example day time ends and night time starts?
This would make it possible to start a fast night cycle earlier.
By now night starts at 8pm and I would rather set this to 7pm cause it's getting really dark in interiors at that time already and I would start a fast night cycle earlier this way.

good suggestion. SkipNightUI already does that.

1 year later... :D

I just checked TimeOfDay's code. Adjust the conditional statement of the void SetTimeComponent() function by directly editing it, which contains the conditional expression that sets the conditions for night time. As of now, since the plugin is hardcoded, that's the only way to adjust it. Go to oxide > plugins and open the TimeOfDay.cs file with Notepad.

For example, if you want to change a night cycle that starts at 8 PM to 7 PM,

in the void SetTimeComponent() function

if (TOD_Sky.Instance.Cycle.Hour > TOD_Sky.Instance.SunriseTime && TOD_Sky.Instance.Cycle.Hour < TOD_Sky.Instance.SunsetTime) conditional expression

Change to if (TOD_Sky.Instance.Cycle.Hour > TOD_Sky.Instance.SunriseTime && TOD_Sky.Instance.Cycle.Hour < TOD_Sky.Instance.SunsetTime - 1.0f)

I tested it on my staging server and the code works as expected.

From 7pm to 8pm?
This would be weird.
I would like to start the night 1 hour earlier from 7pm on to make the time progress faster when it already darkens.
The last hour until 8pm is always very dark already and very long on a server that has 3 hours of daytime.

Time is just an example. Night will start one hour earlier than the night time currently in effect on your server.

Could you hand me over a config file where night begins at 7pm and ends at 8?
Or give me the code for that?

You must modify the plugin directly, not the configuration file. After more extensive testing, I will provide you with the plugin files or some of the code.

That would be awesome.

You have to ignore my answer above. Totally messed up.
And sorry for the late reply. It took a while because there was a problem with my git.

I add the option to offset the time in config via https://github.com/MadeByPP/TimeOfDay

I hope it helps!

I can't get it how this works @unknowofverify
I set up the time like this in my config:

"TimeOffset": {
"offsetDayStartTime(Native : 07:25)": 10.0,
"offsetNightStartTime(Native : 19:45)": 18.0
}

I even tried 1.0 value for both sunset and sunrise in-case it's not the exact hour value and it's the increacement setting but still shows 7:37/20.0 when check with /tod.

@Flammable I didn't find any problems when I tested it most recently, I'll try to create a ticket on github and track bugs. I have one question. The /tod command doesn't show the offset properly, but does the offset actually work properly?