19 lines
445 B
C#
19 lines
445 B
C#
namespace Lib.@string.datetime;
|
|
|
|
[Guid("bd8d684c-96ae-4864-84fd-ca87f98ce1a4")]
|
|
internal sealed class NowAsDateTime : Instance<NowAsDateTime>
|
|
{
|
|
[Output(Guid = "99f94d1c-7d79-497d-9d42-dff8b749e493")]
|
|
public readonly Slot<DateTime> Output = new();
|
|
|
|
|
|
public NowAsDateTime()
|
|
{
|
|
Output.UpdateAction += Update;
|
|
}
|
|
|
|
private void Update(EvaluationContext context)
|
|
{
|
|
Output.Value = DateTime.Now;
|
|
}
|
|
} |