DateTime::Format::TauStation - Parse and format TauStation GCT datetimes
use DateTime::Format::TauStation; my $dt = DateTime::Format::TauStation->parse_datetime( '90.28/44:001 GCT' ); # 90.28/44:001 GCT DateTime::Format::TauStation->format_datetime($dt); my $dur = DateTime::Format::TauStation->parse_duration( 'D/20:000 GCT' ); # D/20:000 GCT DateTime::Format::TauStation->format_duration($dur);
Parse and format GCT (Galactic Coordinated Time) strings for the online game TauStation.
Requires a full datetime string such as "0.1/02:003", where 0 is the cycle, 1 is the day, 03 is the segment, and 004 is the unit.
0
cycle
1
03
004
Returns a DateTime::Calendar::TauStation object.
Supports the following forms of duration strings: D4.3/02:001 GCT, D3/02:001 GCT and D/02:001 GCT.
D4.3/02:001 GCT
D3/02:001 GCT
D/02:001 GCT
Given a DateTime::Duration::TauStation object, this method returns a GCT formatted duration string.
DateTime::Duration::TauStation
Carl Franks
Copyright (c) 2018 Carl Franks.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
DateTime::Calendar::TauStation, DateTime::Duration::TauStation
To install DateTime::Calendar::TauStation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DateTime::Calendar::TauStation
CPAN shell
perl -MCPAN -e shell install DateTime::Calendar::TauStation
For more information on module installation, please visit the detailed CPAN module installation guide.