Created
January 5, 2022 07:37
-
-
Save mohammedsalem97/a6dedfd110e5b188c82fac343323f8af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main(){ | |
String rawData="05:26"; | |
int hours=int.parse(rawData.split(":")[0]); | |
int minutes=int.parse(rawData.split(":")[1]); | |
print("hours: $hours"); | |
print("minutes: $minutes"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment