about summary refs log tree commit diff stats
path: root/t/02-timestamp-to-date.rakutest
blob: 4e94dd1a728457eaa415a944863ab315a39a750c (plain) (blame)
1
2
3
4
5
6
7
use Test;
use Taurus::Timestamp;

plan 2;

is-deeply timestamp-to-date("16/08/2021"), Date.new("2021-08-16"), "Date";
is-deeply timestamp-to-date("16/08/2020  00:00 am"), Date.new("2020-08-16"), "Date with timestamp";