readme
来自「source of perl for linux application,」· 代码 · 共 40 行
TXT
40 行
Time::Piece===========This module supercedes Time::Object (and has a better name).At this time the module is almost identical to Time::Object, withthe exception of strptime support. People using Time::Object shouldmigrate over to Time::Piece as they are able to do so. No furtherdevelopment will occur to Time::Object.DESCRIPTIONHave you ever thought you time was thoroughly wasted by doing: $ perldoc -f localtimejust to recall the position of wday or some other item in the returnedlist 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 thedate/time via method calls, plus they allow you to get at the stringform of the week day and month. It has methods for julian days, andsome simple date arithmetic options.Time::Piece also gives you easy access to your C library's strftimeand strptime functions, so you can parse and output locale sensitivedates to your heart's content :-)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?