getDatestamp function

int getDatestamp()

Returns the number of days since January 1, 1970.

Currently only used for the signature timestamp in BrowsingMixin.getSong.

Implementation

int getDatestamp() {
  final epoch = DateTime.fromMillisecondsSinceEpoch(0);
  final now = DateTime.now();
  return now.difference(epoch).inDays;
}