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 November 26, 2025 06:19
Time calculation
import 'dart:core';
// Define the start and end times for the main work period
// These can now be "h:mm AM/PM" or "HH:mm"
// Example for 24-hour format:
// String startTimeStr = "08:46";
// String endTimeStr = "17:30";
// Example for mixed formats:
// String startTimeStr = "8:46 AM";