Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^2: iterating over time with DateTime to obtain values with Astro::Coords

by Aldebaran (Curate)
on Oct 14, 2021 at 20:08 UTC ( [id://11137544]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # create a DateTime object from an ISO timestring
    my $isostr = '2021-10-09T11:13:57';    # jd 2459496.96802
    my $dt     = DateTime::Format::ISO8601->parse_datetime($isostr);
    ...
    my $diff        = $end_epoch - $start_epoch;
    my $hard_bottom = int($start_epoch);
    $logger->info("integer bottom is $hard_bottom");
    
  2. or download this
    2021/10/14 13:49:52 INFO 1633518344.15928 1634095655.87543 1634741861.
    +07993 1635451604.37235 1636060526.50686 
    2021/10/14 13:49:52 INFO integer bottom is 1633518344
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137544]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-04-23 16:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found