chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user