mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-09 18:33:11 +00:00
12 lines
238 B
Dart
12 lines
238 B
Dart
|
class TimeSeriesData {
|
||
|
TimeSeriesData(
|
||
|
this.secondsSinceEpoch,
|
||
|
this.value,
|
||
|
);
|
||
|
|
||
|
final int secondsSinceEpoch;
|
||
|
DateTime get time =>
|
||
|
DateTime.fromMillisecondsSinceEpoch(secondsSinceEpoch * 1000);
|
||
|
final double value;
|
||
|
}
|