Created
August 17, 2020 05:52
-
-
Save lydonchandra/9a5a2fe1a14e27e3d5610714b2f5e447 to your computer and use it in GitHub Desktop.
deedle-nodatime-instant.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Series<Interval, double> srsNoda = Enumerable | |
.Range(0, 100) | |
.Select( idx => { | |
Instant instant1 = SystemClock.Instance.GetCurrentInstant(); | |
return KeyValue.Create( | |
new Interval(instant1, instant1.Plus( Duration.FromHours(idx) ) ) | |
, (double)idx ); | |
}) | |
.ToSeries(); | |
srsNoda.Print(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
2020-08-17T05:47:49.4403873Z/2020-08-17T05:47:49.4403873Z -> 0
2020-08-17T05:47:49.4418183Z/2020-08-17T06:47:49.4418183Z -> 1
2020-08-17T05:47:49.4418272Z/2020-08-17T07:47:49.4418272Z -> 2
2020-08-17T05:47:49.4418276Z/2020-08-17T08:47:49.4418276Z -> 3
2020-08-17T05:47:49.4418281Z/2020-08-17T09:47:49.4418281Z -> 4
2020-08-17T05:47:49.44183Z/2020-08-17T10:47:49.44183Z -> 5
2020-08-17T05:47:49.4418304Z/2020-08-17T11:47:49.4418304Z -> 6
2020-08-17T05:47:49.4418304Z/2020-08-17T12:47:49.4418304Z -> 7
2020-08-17T05:47:49.4418309Z/2020-08-17T13:47:49.4418309Z -> 8
2020-08-17T05:47:49.4418314Z/2020-08-17T14:47:49.4418314Z -> 9
2020-08-17T05:47:49.4418318Z/2020-08-17T15:47:49.4418318Z -> 10
2020-08-17T05:47:49.4418318Z/2020-08-17T16:47:49.4418318Z -> 11
2020-08-17T05:47:49.4418323Z/2020-08-17T17:47:49.4418323Z -> 12
2020-08-17T05:47:49.4418328Z/2020-08-17T18:47:49.4418328Z -> 13
2020-08-17T05:47:49.4418328Z/2020-08-17T19:47:49.4418328Z -> 14
... -> ...
2020-08-17T05:47:49.4418556Z/2020-08-20T18:47:49.4418556Z -> 85
2020-08-17T05:47:49.441856Z/2020-08-20T19:47:49.441856Z -> 86
2020-08-17T05:47:49.441856Z/2020-08-20T20:47:49.441856Z -> 87
2020-08-17T05:47:49.4418565Z/2020-08-20T21:47:49.4418565Z -> 88
2020-08-17T05:47:49.441857Z/2020-08-20T22:47:49.441857Z -> 89
2020-08-17T05:47:49.441857Z/2020-08-20T23:47:49.441857Z -> 90
2020-08-17T05:47:49.4418574Z/2020-08-21T00:47:49.4418574Z -> 91
2020-08-17T05:47:49.4418574Z/2020-08-21T01:47:49.4418574Z -> 92
2020-08-17T05:47:49.4418579Z/2020-08-21T02:47:49.4418579Z -> 93
2020-08-17T05:47:49.4418584Z/2020-08-21T03:47:49.4418584Z -> 94
2020-08-17T05:47:49.4418584Z/2020-08-21T04:47:49.4418584Z -> 95
2020-08-17T05:47:49.4418588Z/2020-08-21T05:47:49.4418588Z -> 96
2020-08-17T05:47:49.4418588Z/2020-08-21T06:47:49.4418588Z -> 97
2020-08-17T05:47:49.4418593Z/2020-08-21T07:47:49.4418593Z -> 98
2020-08-17T05:47:49.4418598Z/2020-08-21T08:47:49.4418598Z -> 99