Skip to content

Instantly share code, notes, and snippets.

View Vonarian's full-sized avatar
🐈
Petting muh cat

Ardeshir Nahavandi Fard Vonarian

🐈
Petting muh cat
View GitHub Profile
@Vonarian
Vonarian / main.dart
Last active September 15, 2025 13:06
Time calculation
import 'dart:core';
// Define the start and end times
// These can now be "h:mm AM/PM" or "HH:mm"
String startTimeStr = "8:46 AM";
String endTimeStr = "5:30 PM";
// Example for 24-hour format:
// String startTimeStr = "08:46";
// String endTimeStr = "17:30";