NAME

DateTime::Format::TauStation - Parse and format TauStation GCT datetimes

SYNOPSIS

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);

DESCRIPTION

Parse and format GCT (Galactic Coordinated Time) strings for the online game TauStation.

METHODS

parse_datetime

Requires a full datetime string such as 000.01/02:003, where 000 is the cycle, 01 is the day, 02 is the segment, and 003 is the unit.

Returns a DateTime::Calendar::TauStation object.

parse_duration

Supports the following forms of duration strings: D4.3/02:001 GCT, D3/02:001 GCT and D/02:001 GCT.

Returns a DateTime::Calendar::TauStation object.

format_datetime

format_duration

format_interval

Given a DateTime::Duration::TauStation object, this method returns a GCT formatted duration string.

AUTHOR

Carl Franks

COPYRIGHT

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.

SEE ALSO

DateTime::Calendar::TauStation, DateTime::Duration::TauStation