1/// Add the ability to interact with the original seconds based unix timestamp.
2extension DateTimeS on DateTime {
3  /// The number of seconds since the "Unix epoch" 1970-01-01T00:00:00Z (UTC).
4  int get secondsSinceEpoch => millisecondsSinceEpoch ~/ 1000;
5
6  /// Constructs a new DateTime instance with the given [secondsSinceEpoch].
7  static DateTime fromSecondsSinceEpoch(int secondsSinceEpoch) =>
8      DateTime.fromMillisecondsSinceEpoch(secondsSinceEpoch * 1000);
9}