Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d1382737d9
Fetching contributors…

Cannot retrieve contributors at this time

file 17 lines (10 sloc) 0.316 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use v6;
use Test;

BEGIN { @*INC.unshift: 'lib' }

use DateTime::Utils;

plan 3;

my $offset = iso-offset('-0800');
is $offset, -28800, 'offset in seconds';

my $dt = DateTime.now(:timezone($offset));

is $dt.offset(), -28800, 'DateTime offset in seconds';

is strftime('%z', $dt), '-0800', 'strftime round robin';
Something went wrong with that request. Please try again.