THE BEST NEWSLETTER ANYWHERE
Join 6,000 subscribers and get a daily digest of full stack tutorials delivered to your inbox directly.No spam ever. Unsubscribe any time.
This tutorial explains about how to get Current Date and time in Local and UTC
use strict;
use warnings;
use DateTime;
my $dt = DateTime->now;
print "$dt"
This is an example of getting date and time of a Local System.
use strict;
use warnings;
use DateTime;
my $dt = Localtime();
print "$dt"
🧮 Tags
Recent posts
Julia examples - Variable Type Nim example - Convert String to/from the Int How to get length of an array and sequence in Nim? Nim environment variables - read, set, delete, exists, and iterate examples? How to convert from single character to/from string in Nim?Related posts