Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created April 3, 2019 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/a9b272d3cf4c64003fccc020370bfd13 to your computer and use it in GitHub Desktop.
Save Whateverable/a9b272d3cf4c64003fccc020370bfd13 to your computer and use it in GitHub Desktop.
greppable6
File Code
ATROXAPER/Propius
…/Propius.pm6 :25:
return DateTime.now.posix;
CTILMES/LibCurl
…/test0077.t :15:
timevalue => DateTime.new('1999-12-12T12:00:00Z').posix,
CTILMES/LibCurl
…/test0078.t :15:
timevalue => DateTime.new('1999-12-12T11:00:00Z').posix,
CTILMES/LibGit2
…/Signature.pm6 :33:
$time.posix, $time.offset-in-minutes.Int));
CTILMES/Munge
…/unmunge.p6 :33:
ENCODE_TIME: $m.encode-time() ($m.encode-time.posix())
CTILMES/Munge
…/unmunge.p6 :34:
DECODE_TIME: $m.decode-time() ($m.decode-time.posix())
FCO/Red
…/README.md :208:
# Instant.from-posix(
FCO/Red
…/Red.pm6 :264:
# Instant.from-posix(
FCO/Red
…/CommonSQL.pm6 :349:
self.translate: ast-value(.get-value.?to-posix.head), $context
FCO/Red
…/CommonSQL.pm6 :484:
multi method inflate(Num $value, Instant :$to!) { $to.from-posix: $value }
HANENKAMP/AWS-Session
…/Credentials.pm6 :126:
$!expiry-time - DateTime.now.posix
HANENKAMP/DateTime-DST
…/README.md :16:
say is-dst($non-dst.posix); # False
HANENKAMP/DateTime-DST
…/README.md :20:
say is-dst($dst.posix); # True
HANENKAMP/DateTime-DST
…/DST.pm6 :12:
my ($posix, $leap-sec) = $time.to-posix;
HANENKAMP/DateTime-DST
…/DST.pm6 :13:
callwith($posix);
HANENKAMP/DateTime-DST
…/DST.pm6 :17:
callwith($time.posix);
HANENKAMP/DateTime-DST
…/DST.pm6 :20:
multi is-dst(Int() $posix) returns Bool is export {
HANENKAMP/DateTime-DST
…/DST.pm6 :21:
?is_dst($posix);
HANENKAMP/DateTime-DST
…/DST.pm6 :38:
say is-dst($non-dst.posix); # False
HANENKAMP/DateTime-DST
…/DST.pm6 :42:
say is-dst($dst.posix); # True
HANENKAMP/DateTime-DST
…/is-dst.t :20:
is is-dst($time.posix), False, '2016-01-15 is not DST (Int)';
HANENKAMP/DateTime-DST
…/is-dst.t :36:
is is-dst($time.posix), True, '2016-06-15 is DST (Int)';
HANENKAMP/HTTP-Headers
…/prepared.t :13:
$h.Date = Instant.from-posix(1431596915);
HANENKAMP/ULID
…/ULID.pm6 :80:
my ($unix-secs) = $now.to-posix;
HANENKAMP/ULID
…/basic.t :16:
my $now-millis = (now.to-posix * 1000).floor;
HANENKAMP/ULID
…/basic.t :24:
my $now = $dt.posix(:ignore-timezone);
HMBRAND/Text-CSV
…/.aspell.local.pws :45:
posix
JMASLAK/DateTime-Monotonic
…/Monotonic.pm6 :53:
return $now.posix + ($now.second - $now.whole-second);
JMASLAK/Net-BGP
…/Event.pm6 :13:
has Int:D $.creation-date = DateTime.now.posix;
JMASLAK/Net-BGP
…/50-messages.t :56:
is-approx $msg.creation-date, DateTime.now.posix, 30, "Date time appears correct";
JMASLAK/Net-BGP
…/50-messages.t :75:
is-approx $msg.creation-date, DateTime.now.posix, 30, "Date time appears correct";
JMASLAK/Net-BGP
…/50-messages.t :90:
is-approx $msg.creation-date, DateTime.now.posix, 30, "Date time appears correct";
JNTHN/Cro-HTTP
…/WebToken.pm6 :18:
$auth = Nil if Instant.from-posix($_) < now;
JNTHN/Cro-HTTP
…/http-auth-webtoken-bearer.t :29:
my $time = DateTime.new(now).later(minutes=> 30).posix();
JNTHN/Cro-HTTP
…/http-auth-webtoken-bearer.t :39:
$time = DateTime.new(now).earlier(minutes=> 30).posix();
JNTHN/Cro-HTTP
…/http-auth-webtoken-cookie.t :18:
my $time = DateTime.new(now).later(minutes=> 30).posix();
JNTHN/cro
…/app.js :57523:
// posix version
JNTHN/cro
…/app.js :57554:
// posix version
JNTHN/cro
…/app.js :57574:
// posix version
JNTHN/cro
…/app.js :57579:
// posix version
JNTHN/cro
…/app.js :57592:
// posix version
JNTHN/cro
…/package-lock.json :1709:
"is-posix-bracket": "0.1.1"
JNTHN/cro
…/package-lock.json :2073:
"is-posix-bracket": {
JNTHN/cro
…/package-lock.json :2075:
"resolved": "https://registry.npmjs.org/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz",
JSTOWE/Chronic
…/040-at.t :19:
await Chronic.at($dt.posix).then({ ok $_.result.truncated-to('second') == $dt.truncated-to('second'), "got run at $dt (Int)" });
JSTOWE/FastCGI-NativeCall
…/configure :24:
*posix*) set -o posix ;;
JSTOWE/FastCGI-NativeCall
…/configure :249:
*posix*) set -o posix ;;
JSTOWE/FastCGI-NativeCall
…/configure :270:
*posix*) set -o posix ;;
JSTOWE/FastCGI-NativeCall
…/configure :4009:
*posix*) set -o posix ;;
JSTOWE/META6
…/projects.json :7561:
"source-url" : "https://github.com/cspencer/perl6-posix.git",
JSTOWE/MQ-Posix
…/META6.json :21:
"posix",
KAJI/App-Platform
…/project.yml :16:
objectClass: posixGroup
KAJI/App-Platform
…/project.yml :22:
objectClass: posixAccount
MARTIMM/BSON
…/Document.pm6 :732:
encode-int64((( .posix + .second - .whole-second) * 1000).Int);
MARTIMM/BSON
…/320-document.t :24:
my DateTime $datetime .= new( DateTime.now.posix, :timezone($*TZ));
MARTIMM/BSON
…/320-document.t :228:
# local-encode-int64((($datetime.posix+$datetime.second-$datetime.whole-second)*1000).Int).List, # time
MARTIMM/BSON
…/320-document.t :229:
encode-int64((($datetime.posix+$datetime.second-$datetime.whole-second)*1000).Int).List, # time
MARTIMM/BSON
…/Document1.pm6 :487:
encode-int64(.posix);
MARTIMM/BSON
…/Document2.pm6 :487:
encode-int64(.posix);
MARTIMM/BSON
…/Document3.pm6 :459:
encode-int64(.posix);
TIMOTIMO/JSON-Fast
…/07-datetime.t :13:
multi sub infix:<=~=>(DateTime:D \l, DateTime:D \r){ l.posix == r.posix }
TIMOTIMO/JSON-Fast
…/07-datetime.t :18:
multi sub infix:<=~=>(Instant:D\l, Instant:D\r){ l.to-posix == r.to-posix }
TITSUKI/Algorithm-LBFGS
…/arithmetic_sse_double.h :50:
if (posix_memalign(&p, 16, size) == 0) {
TITSUKI/Algorithm-LBFGS
…/arithmetic_sse_float.h :56:
if (posix_memalign(&p, 16, size) == 0) {
TITSUKI/Algorithm-LBFGS
…/lbfgs.h :610:
- Replaced memalign() with posix_memalign().
CurtTilmes/perl6-eredis
…/Async.pm :207:
when Instant { .DateTime.posix.Str.encode }
CurtTilmes/perl6-eredis
…/Async.pm :208:
when DateTime { .posix.Str.encode }
CurtTilmes/perl6-eredis
…/05-expires.t :49:
is $r.pexpireat('foo', (now+1).DateTime.posix * 1000),
CurtTilmes/perl6-libcurl
…/test0077.t :15:
timevalue => DateTime.new('1999-12-12T12:00:00Z').posix,
CurtTilmes/perl6-libcurl
…/test0078.t :15:
timevalue => DateTime.new('1999-12-12T11:00:00Z').posix,
MARTIMM/BSON
…/Document.pm6 :732:
encode-int64((( .posix + .second - .whole-second) * 1000).Int);
MARTIMM/BSON
…/320-document.t :24:
my DateTime $datetime .= new( DateTime.now.posix, :timezone($*TZ));
MARTIMM/BSON
…/320-document.t :228:
# local-encode-int64((($datetime.posix+$datetime.second-$datetime.whole-second)*1000).Int).List, # time
MARTIMM/BSON
…/320-document.t :229:
encode-int64((($datetime.posix+$datetime.second-$datetime.whole-second)*1000).Int).List, # time
MARTIMM/BSON
…/Document1.pm6 :487:
encode-int64(.posix);
MARTIMM/BSON
…/Document2.pm6 :487:
encode-int64(.posix);
MARTIMM/BSON
…/Document3.pm6 :459:
encode-int64(.posix);
Tux/CSV
…/.aspell.local.pws :45:
posix
andydude/p6-c-parser
…/gbytes.pp.c :170:
time_t posix2time(time_t);
andydude/p6-c-parser
…/gbytes.pp.c :175:
time_t time2posix(time_t);
azawawi/perl6-gtk-scintilla
…/Document.cxx :2942:
const bool posix = (flags & SCFIND_POSIX) != 0;
azawawi/perl6-gtk-scintilla
…/Document.cxx :2944:
const char *errmsg = search.Compile(s, *length, caseSensitive, posix);
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :38:
* bool caseSensitive, bool posix)
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :54:
* and ( ) if posix option.
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :64:
* - if not in posix mode, when followed by a
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :114:
* as \(form\) (or (form) with posix flag) matches what
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :437:
const char *RESearch::Compile(const char *pattern, int length, bool caseSensitive, bool posix) {
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :658:
if (!posix && *p == '(') {
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :666:
} else if (!posix && *p == ')') {
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :694:
if (posix && *p == '(') {
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :702:
} else if (posix && *p == ')') {
azawawi/perl6-gtk-scintilla
…/RESearch.cxx :731:
return badpat((posix ? "Unmatched (" : "Unmatched \\("));
azawawi/perl6-gtk-scintilla
…/RESearch.h :38:
const char *Compile(const char *pattern, int length, bool caseSensitive, bool posix);
bradclawsie/Context
…/basic.t :132:
$before = now.to-posix()[0];
bradclawsie/Context
…/basic.t :134:
$after = now.to-posix()[0];
cspencer/perl6-posix
…/.gitrepo :7:
remote = https://github.com/cspencer/perl6-posix.git
cspencer/perl6-posix
…/META.info :11:
"source-url" : "https://github.com/cspencer/perl6-posix.git"
ijneb/telegram-bot
…/Message.pm6 :22:
date => Date.new(Instant.from-posix: $json<date>)
labster/p6-IO-Path-More
…/More.pm :55:
$*DISTRO.name ne any(<MSWin32 os2 dos NetWare symbian>) #this could use a better way of asking "am I posixy?
perl6-all-modules/github/perl6-posix/.gitrepo remote = https://github.com/cspencer/perl6-posix
perl6-all-modules/github/perl6-posix/META.info "source-url" : "https://github.com/cspencer/perl6-posix.git"
perl6/doc
…/faq.pod6 :221:
An ecosystem module L<POSIX|https://github.com/cspencer/perl6-posix> is
perl6/doc
…/Date.pod6 :51:
$date = Date.new(Instant.from-posix: 1482155532);
perl6/doc
…/DateTime.pod6 :56:
multi method new(Int:D $posix, :$timezone=0, :&formatter)
perl6/doc
…/DateTime.pod6 :249:
=head2 method posix
perl6/doc
…/DateTime.pod6 :253:
method posix(Bool:D: $ignore-timezone = False --> Int:D)
perl6/doc
…/DateTime.pod6 :261:
say DateTime.new('2015-12-24T12:23:00Z').posix; # OUTPUT: «1450959780␤»
perl6/doc
…/Instant.pod6 :33:
$ perl6-2016.06 -e 'say Instant.from-posix: 1485726595'
perl6/doc
…/Instant.pod6 :36:
$ perl6-2016.07 -e 'say Instant.from-posix: 1485726595'
perl6/doc
…/Instant.pod6 :46:
$ perl6-2016.06 -e 'say ($*VM.version before v2016.07 ?? 1 !! 0) + Instant.from-posix: 1485726595'
perl6/doc
…/Instant.pod6 :49:
$ perl6-2016.07 -e 'say ($*VM.version before v2016.07 ?? 1 !! 0) + Instant.from-posix: 1485726595'
perl6/doc
…/Instant.pod6 :55:
=head2 method from-posix
perl6/doc
…/Instant.pod6 :57:
method from-posix($posix, Bool $prefer-leap-second = False)
perl6/doc
…/Instant.pod6 :59:
Converts the POSIX timestamp C<$posix> to an Instant.
perl6/doc
…/Instant.pod6 :63:
say DateTime.new(Instant.from-posix(915148800, True)); # OUTPUT: «1998-12-31T23:59:60Z␤»
perl6/doc
…/Instant.pod6 :64:
say DateTime.new(Instant.from-posix(915148800)); # OUTPUT: «1999-01-01T00:00:00Z␤»
perl6/doc
…/Instant.pod6 :66:
=head2 method to-posix
perl6/doc
…/Instant.pod6 :68:
method to-posix()
perl6/doc
…/Instant.pod6 :72:
It is the inverse of L<#method from-posix>, except that the second return
perl6/doc
…/Instant.pod6 :76:
say DateTime.new("1999-01-01T00:00:00Z").Instant.to-posix; # OUTPUT: «(915148800 False)␤»
perl6/doc
…/Instant.pod6 :77:
say DateTime.new('1998-12-31T23:59:60Z').Instant.to-posix; # OUTPUT: «(915148800 True)␤»
perl6/doc
…/words.pws :882:
posix
perl6/whateverable
…/fetch-irc.p6 :76:
# .[2], # when (posix)
perl6/whateverable
…/Coverable.p6 :82:
my $log = $*TMPDIR.add: “coverage_{now.to-posix[0]}.log”; # TODO proper temp file name
retupmoca/p6-Email-Simple
…/josey-fold :5:
for <posix@simon-cozens.org>; Wed, 13 Nov 2002 10:24:23 +0000
samgwise/Net-OSC
…/Bundle.pm6 :74:
Instant.from-posix(unpack-uint32($time-stamp.subbuf(0, 4), :byte-order(big-endian)) - 2208988800) + ('0.' ~ unpack-uint32($time-stamp.subbuf(4, 4), :byte-order(big-endian)))
sergot/Term--ProgressBar
…/ProgressBar.pm :23:
# something to get this value directly (posix-hi-res?).
sergot/Term--ProgressBar
…/ProgressBar.pm :25:
my $start = $now.posix + ($now.second - $now.whole-second);
spebern/Parser-FreeXL-Native
…/INSTALL :62:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
spebern/Parser-FreeXL-Native
…/aclocal.m4 :1164:
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
spebern/Parser-FreeXL-Native
…/aclocal.m4 :1165:
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
spebern/Parser-FreeXL-Native
…/configure :28:
*posix*) :
spebern/Parser-FreeXL-Native
…/configure :29:
set -o posix ;; #(
spebern/Parser-FreeXL-Native
…/configure :172:
*posix*) :
spebern/Parser-FreeXL-Native
…/configure :173:
set -o posix ;; #(
spebern/Parser-FreeXL-Native
…/configure :17457:
*posix*) :
spebern/Parser-FreeXL-Native
…/configure :17458:
set -o posix ;; #(
spebern/Parser-FreeXL-Native
…/install-sh :71:
posix_glob='?'
spebern/Parser-FreeXL-Native
…/install-sh :72:
initialize_posix_glob='
spebern/Parser-FreeXL-Native
…/install-sh :73:
test "$posix_glob" != "?" || {
spebern/Parser-FreeXL-Native
…/install-sh :75:
posix_glob=
spebern/Parser-FreeXL-Native
…/install-sh :77:
posix_glob=:
spebern/Parser-FreeXL-Native
…/install-sh :82:
posix_mkdir=
spebern/Parser-FreeXL-Native
…/install-sh :308:
case $posix_mkdir in
spebern/Parser-FreeXL-Native
…/install-sh :334:
posix_mkdir=false
spebern/Parser-FreeXL-Native
…/install-sh :363:
then posix_mkdir=:
spebern/Parser-FreeXL-Native
…/install-sh :375:
$posix_mkdir && (
spebern/Parser-FreeXL-Native
…/install-sh :392:
eval "$initialize_posix_glob"
spebern/Parser-FreeXL-Native
…/install-sh :396:
$posix_glob set -f
spebern/Parser-FreeXL-Native
…/install-sh :399:
$posix_glob set +f
spebern/Parser-FreeXL-Native
…/install-sh :412:
if $posix_mkdir; then
spebern/Parser-FreeXL-Native
…/install-sh :471:
eval "$initialize_posix_glob" &&
spebern/Parser-FreeXL-Native
…/install-sh :472:
$posix_glob set -f &&
spebern/Parser-FreeXL-Native
…/install-sh :475:
$posix_glob set +f &&
spebern/Parser-FreeXL-Native
…/ltmain.sh :95:
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
spebern/Parser-FreeXL-Native
…/ltmain.sh :3553:
win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
spebern/Parser-FreeXL-Native
…/ltmain.sh :3862:
case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
spitsh/spitsh
…/Date.sp :48:
method posix+ ${@date $self '+%s'}
spitsh/spitsh
…/Host.sp :16:
my $start = now.posix;
spitsh/spitsh
…/Host.sp :18:
while now.posix < ($start + $timeout) and !$connected {
spitsh/spitsh
…/Pkg.sp :56:
if ! ~$last-updated || now().posix - $last-updated.posix > $:pkglist-stale {
spitsh/spitsh
…/Date.t :15:
is .posix, 1493784186, '.posix';
spitsh/spitsh
…/Date.t :40:
ok .posix ~~ /^\d+$/, 'sanity .posix';
spitsh/spitsh
…/time.t :9:
my $diff = .mtime.posix - $before.posix;
spitsh/spitsh
…/update.t :15:
ok Pkg.last-updated.posix < now.posix, '.last-updated.posix than now.poisx';
spitsh/spitsh
…/wait-connectable.t :10:
my $diff = (now.posix - $before.posix);
spitsh/spitsh
…/wait-connectable.t :18:
my $diff = now.posix - $before.posix;
spitsh/spitsh
…/wait-connectable.t :28:
my $diff = now.posix - $before.posix;
supernovus/perl6-datetime-format
…/Format.pm6 :79:
's' => { $dt.posix.fmt('%d') },
supernovus/perl6-datetime-math
…/Math.pm6 :77:
DateTime.new(($dt.posix + $x).Int, :timezone($dt.timezone), :formatter($dt.formatter))
supernovus/perl6-datetime-math
…/Math.pm6 :86:
DateTime.new(($dt.posix - $x).Int, :timezone($dt.timezone), :formatter($dt.formatter))
supernovus/perl6-datetime-math
…/Math.pm6 :92:
# Duration.new($a.posix - $b.posix);
supernovus/perl6-datetime-math
…/Math.pm6 :96:
# $a.posix cmp $b.posix;
supernovus/perl6-datetime-math
…/Math.pm6 :100:
# $a.posix <=> $b.posix;
supernovus/perl6-datetime-math
…/Math.pm6 :104:
# $a.posix == $b.posix;
supernovus/perl6-datetime-math
…/Math.pm6 :108:
# $a.posix != $b.posix;
supernovus/perl6-datetime-math
…/Math.pm6 :112:
# $a.posix <= $b.posix;
supernovus/perl6-datetime-math
…/Math.pm6 :116:
# $a.posix < $b.posix;
supernovus/perl6-datetime-math
…/Math.pm6 :120:
# $a.posix >= $b.posix;
supernovus/perl6-datetime-math
…/Math.pm6 :124:
# $a.posix > $b.posix;
supernovus/perl6-timezone
…/Zone.pm6 :10:
my $time = $.datetime.posix;
supernovus/perl6-timezone
…/gen-tzdata-classes.pl6 :164:
$until = $until_dt.posix;
ufobat/p6-time-crontab
…/Crontab.pm6 :24:
multi method match(Int $posix) {
ufobat/p6-time-crontab
…/Crontab.pm6 :25:
return self.match(DateTime.new($posix, :$.timezone));
ufobat/p6-time-crontab
…/crontab.t :25:
ok( $tc.match($without-sec.posix), "$crontab matches $without-sec as posix timestamp");
ufobat/p6-time-crontab
…/crontab.t :26:
nok( $tc.match($with-sec.posix), "$crontab matches $with-sec as posix timestamp");
zoffixznet/perl6-Games-TauStation-DateTime
…/README.md :26:
say GCT.new('193.99/59:586 GCT').posix; # OUTPUT: «1488556832␤»
zoffixznet/perl6-Games-TauStation-DateTime
…/gct.p6 :32:
say GCT.new('193.99/59:586 GCT').posix; # OUTPUT: «1488556832␤»
zoffixznet/perl6-Reminders
…/Reminders.pm6 :24:
:when(Instant.from-posix: .<when>), :seen(?+.<seen>),
zoffixznet/perl6-Reminders
…/Reminders.pm6 :25:
:created(Instant.from-posix: .<created>)
zoffixznet/perl6-Reminders
…/Reminders.pm6 :86:
」, $who, what, $where, $when.to-posix.head, time;
zoffixznet/perl6-Reminders
…/Reminders.pm6 :158:
$when.to-posix.head, rem.id;
zoffixznet/perl6-Reminders
…/02-crud.t :15:
:when(Instant.from-posix(7952342400.0, Bool::False)),
zoffixznet/perl6-Reminders
…/02-crud.t :22:
:when(Instant.from-posix(7952342400.0, Bool::False)),
zoffixznet/perl6-Reminders
…/02-crud.t :26:
:when(Instant.from-posix(946684800.0, Bool::False)), :where(""), :who(""))
zoffixznet/perl6-Reminders
…/02-crud.t :31:
:when(Instant.from-posix(7952342400.0, Bool::False)),
zoffixznet/perl6-WWW-P6lert
…/README.md :45:
$conf.spurt: DateTime.now.Instant.to-posix.head.Int;
zoffixznet/perl6-WWW-P6lert
…/last-fetcher.p6 :6:
$conf.spurt: DateTime.now.Instant.to-posix.head.Int;
zoffixznet/perl6-WWW-P6lert
…/P6lert.pm6 :46:
self.since: $time.DateTime.Instant.to-posix.head.Int
zoffixznet/perl6-p6lert
…/p6lert :36:
%conf<last-fetch-time> = DateTime.now.Instant.to-posix.head.Int;
zostay/DateTime-DST
…/README.md :16:
say is-dst($non-dst.posix); # False
zostay/DateTime-DST
…/README.md :20:
say is-dst($dst.posix); # True
zostay/DateTime-DST
…/DST.pm6 :12:
my ($posix, $leap-sec) = $time.to-posix;
zostay/DateTime-DST
…/DST.pm6 :13:
callwith($posix);
zostay/DateTime-DST
…/DST.pm6 :17:
callwith($time.posix);
zostay/DateTime-DST
…/DST.pm6 :20:
multi is-dst(Int() $posix) returns Bool is export {
zostay/DateTime-DST
…/DST.pm6 :21:
?is_dst($posix);
zostay/DateTime-DST
…/DST.pm6 :38:
say is-dst($non-dst.posix); # False
zostay/DateTime-DST
…/DST.pm6 :42:
say is-dst($dst.posix); # True
zostay/DateTime-DST
…/is-dst.t :20:
is is-dst($time.posix), False, '2016-01-15 is not DST (Int)';
zostay/DateTime-DST
…/is-dst.t :36:
is is-dst($time.posix), True, '2016-06-15 is DST (Int)';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment