Giter VIP home page Giter VIP logo

datetime-posix's Introduction

Actions Status Actions Status Actions Status

NAME

DateTime::Posix - Provides a DateTime object that returns posix values with fractional seconds

Note this module's routines have been incorporated into core Raku version 6.e.

SYNOPSIS

use DateTimePosixReal;
my $dt = DateTime::Posix.new: '1970-01-01T00:00:00.23Z';
say $dt.Posix;      # OUTPUT: «0.23␤»
say $dt.posix-real; # OUTPUT: «0.23␤»

DESCRIPTION

DateTime::Posix is a child class of Raku's DateTime class that returns 'posix' values as fractional instead of integral seconds.

The module has two methods with slightly different names to allow some user flexibility:

method Posix($in-timezone? --> Real:D) {...}

and

method posix-real($in-timezone? --> Real:D) {...}

This module will be deprecated when Raku version 6.e is released since that version will provide the same capability for the DateTime base class as its 'posix' method will then return fractional rather than integral seconds.

AUTHOR

Tom Browder ([email protected])

COPYRIGHT and LICENSE

Copyright © 2021-2023 Tom Browder

This library is free software; you may redistribute or modify it under the Artistic License 2.0.

datetime-posix's People

Contributors

tbrowder avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.