Show / Hide Table of Contents

Class DateTimeExtensions

Inheritance
System.Object
DateTimeExtensions
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public static class DateTimeExtensions : Object

Methods

LastWholeSecond(DateTime)

Creates a new DateTime object with the same date as the given DateTime object, but with all values smaller then a second set to zero.

Declaration
public static DateTime LastWholeSecond(this DateTime time)
Parameters
Type Name Description
System.DateTime time
Returns
Type Description
System.DateTime

TotalSeconds(DateTime)

Gets the number of seconds that represents the date and time of this instance.

Declaration
public static double TotalSeconds(this DateTime dateTime)
Parameters
Type Name Description
System.DateTime dateTime
Returns
Type Description
System.Double
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾