Check out example codes for "perl set a specific datetime". It will help you in understanding the concepts better.

Code Example 1

# For Perl only

# syntax
use DateTime;
my $YourDate = DateTime->new(
    year       => <your-year>,
    month      => <your-month>,
    day        => <your-day>,
    hour       => <your-hour>,
    minute     => <your-minute>,
    second     => <your-second>,
    nanosecond => <your-nanosecond>,
);

# example: 
use DateTime; 
my $YourDate = DateTime->new(
    year       => 1994,
    month      => 05,
    day        => 25,
    hour       => 13,
    minute     => 31,
    second     => 18,
    nanosecond => 0,
);

Learn ReactJs, React Native from akashmittal.com