GlobalTime GetSecondsSinceStartToday Method Delta Engine Documentation
Returns an accurate seconds float value for today, would get inaccurate with more days. View code on GitHub

Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public float GetSecondsSinceStartToday()

Return Value

Type: Single
Remarks

Tests: DeltaEngine.Tests.Core.GlobalTimeTests
Examples

1 unit tests call DeltaEngine.Core.GlobalTime.GetSecondsSinceStartToday
[Test]
public void GetSecondsSinceStartToday()
{
    Assert.LessOrEqual(time.GetSecondsSinceStartToday(), 1.0f / 20.0f);
    time.Update();
    Assert.AreNotEqual(0.0f, time.GetSecondsSinceStartToday());
}
See Also