getElinkDateTime static method
Implementation
static List<int> getElinkDateTime({DateTime? date}) {
DateTime now = date ?? DateTime.now();
int year = now.year - 2000;
int month = now.month;
int day = now.day;
int hour = now.hour;
int minute = now.minute;
int second = now.second;
int weekday = now.weekday; // 1=Monday, 7=Sunday
return [year, month, day, hour, minute, second, weekday];
}