Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
TimeUtc.cs
1using System;
5
7{
11 public class TimeUtc : IConstant
12 {
16 public TimeUtc()
17 {
18 }
19
23 public string ConstantName => nameof(TimeUtc);
24
28 public string[] Aliases => null;
29
35 {
36 return new ObjectValue(DateTime.UtcNow.TimeOfDay);
37 }
38
39 }
40}
Current time, UTC Coordinates.
Definition: TimeUtc.cs:12
TimeUtc()
Current time, UTC Coordinates.
Definition: TimeUtc.cs:16
string ConstantName
Name of the constant
Definition: TimeUtc.cs:23
string[] Aliases
Optional aliases. If there are no aliases for the constant, null is returned.
Definition: TimeUtc.cs:28
IElement GetValueElement(Variables Variables)
Gets the constant value element.
Definition: TimeUtc.cs:34
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:20
Base interface for constants that integrate into the script engine.
Definition: IConstant.cs:10