Git Product home page Git Product logo

time-piece's Introduction

## Seeking a new maintainer: https://www.nntp.perl.org/group/perl.perl5.porters/2021/01/msg258823.html

Time::Piece
===========

This module supercedes Time::Object (and has a better name).

At this time the module is almost identical to Time::Object, with
the exception of strptime support. People using Time::Object should
migrate over to Time::Piece as they are able to do so. No further
development will occur to Time::Object.

DESCRIPTION

Have you ever thought you time was thoroughly wasted by doing:

  $ perldoc -f localtime

just to recall the position of wday or some other item in the returned
list of values from localtime (or gmtime) ?

Well Time::Piece is the answer to your prayers.

Time::Piece does the right thing with the return value from localtime:

  - in list context it returns a list of values

  - in scalar context it returns a Time::Piece object

  - when stringified (or printed), Time::Piece objects look like
    the output from scalar(localtime)

Beyond that, Time::Piece objects allow you to get any part of the
date/time via method calls, plus they allow you to get at the string
form of the week day and month. It has methods for julian days, and
some simple date arithmetic options.

Time::Piece also gives you easy access to your C library's strftime
and strptime functions, so you can parse and output locale sensitive
dates to your heart's content :-)

time-piece's People

Contributors

smith153 avatar rjbs avatar mla avatar dolmen avatar bulk88 avatar openstrike avatar grinnz avatar atoomic avatar jmdh avatar dsteinbrunner avatar craigberry avatar phaylon avatar paulg1973 avatar pgraemer avatar ntyni avatar gugod avatar xaerxess avatar haarg avatar choroba avatar runrig avatar xdg avatar ilmari avatar andygrundman avatar

Watchers

 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.