Skip to content

Instantly share code, notes, and snippets.

@mohammedsalem97
Created January 5, 2022 07:37
Show Gist options
  • Save mohammedsalem97/a6dedfd110e5b188c82fac343323f8af to your computer and use it in GitHub Desktop.
Save mohammedsalem97/a6dedfd110e5b188c82fac343323f8af to your computer and use it in GitHub Desktop.
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