Class DateTimeUtils
Inheritance
System.Object
DateTimeUtils
Namespace: Eco.Gameplay.Utils
Assembly: Eco.Gameplay.dll
Syntax
public static class DateTimeUtils : Object
Methods
DateTimeFromString(String)
Take number from string as minutes and count a new date from current time.
Declaration
public static (bool, DateTime) DateTimeFromString(string time)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | time | String should follow the template: 1m || 1h || 1d || 1w |
Returns
| Type | Description |
|---|---|
| System.ValueTuple<System.Boolean, System.DateTime> |