Skip to content

Instantly share code, notes, and snippets.

View isaccavalcante's full-sized avatar
⬆️
One pull request a day

Isac Cavalcante isaccavalcante

⬆️
One pull request a day
View GitHub Profile
void main() {
String arrived = "07:45";
String lunched = "11:40";
String returned = "12:09";
String leave_time = getLeaveTime(arrived, lunched, returned);
print("-------\n->$arrived\n->$lunched\n->$returned\n->$leave_time");
}
void main() {
int daily_needed_minutes = 480; // 8 hours;
var min_arrival_date = getParsedDate("07:30");
String arrived = "07:31";
String lunched = "11:30";
String returned = "12:34";
var arrived_date = DateTime.parse("2019-31-10 $arrived:00Z");