Skip to content

Instantly share code, notes, and snippets.

Verifying my Blockstack ID is secured with the address 1AvK4w8mQXG3hbf7g6sPPa9TmCKA1MAUgh https://explorer.blockstack.org/address/1AvK4w8mQXG3hbf7g6sPPa9TmCKA1MAUgh
void main() {
DateTime time = new DateTime.now();
print("Time: $time");
print("Time Zone: ${time.timeZoneName}");
print("UTC Time: ${time.toUtc()}");
print("Year: ${time.year}");
print("Month: ${time.month}");
print("Day: ${time.day}");
print("Hour: ${time.hour}");
print("Minute: ${time.minute}");