log :: log4perl :: DateFormat.log :: log4perl :: dateformatÀº log4perl °í±Þ ³¯Â¥ Æ÷¸ËÅÍ µµ¿ì¹Ì Ŭ·¡½ºÀÔ´Ï´Ù. | |
Áö±Ý ´Ù¿î·Îµå |
log :: log4perl :: DateFormat. ¼øÀ§ ¹× ¿ä¾à
±¤°í
- ƯÇã:
- Perl Artistic License
- °¡°Ý:
- FREE
- °Ô½ÃÀÚ À̸§:
- Mike Schilli
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~mschilli/X10-Home-0.03/Home.pm
log :: log4perl :: DateFormat. ű×
log :: log4perl :: DateFormat. ¼³¸í
log :: log4perl :: dateformatÀº log4perl °í±Þ ³¯Â¥ Æ÷¸ËÅÍ µµ¿ì¹Ì Ŭ·¡½ºÀÔ´Ï´Ù. log :: log4perl :: dateformatÀº log4perl °í±Þ ³¯Â¥ formatter helper class.synopsis log :: log4perl :: dateformatÀ» »ç¿ëÇÕ´Ï´Ù. ³» $ format = log :: log4perl :: dateformat-> new ( "HH : mm : ss, sss"); # °£´ÜÇÑ ½Ã°£, ¸î ÃÊ ¸¸¿¡ ³» $ time = time (); $ format-> Çü½Ä ($ ½Ã°£), "n"À» ÀμâÇϽʽÿÀ; # => "17 : 02 : 39,000"# °í±Þ ½Ã°£, ¹Ð¸® ÃÊ ´ÜÀ§·Î »ý¼º ½Ã°£ :: °í¿ë; MY ($ secs, $ msecs) = ½Ã°£ :: hires :: getTimeofday (); $ format-> format ($ secs, $ msecs), "n"À» ÀμâÇϽʽÿÀ. # => "17 : 02 : 39,959"log :: log4perl :: dateformatÀº log :: log4perl :: layout :: patternlayout.unless¿¡¼ °í±Þ ³¯Â¥ Çü½ÄÈ ÇÔ¼ö¿¡ ´ëÇÑ ·Î¿ì ·¹º§ ÇïÆÛ Å¬·¡½ºÀÔ´Ï´Ù. log :: log4perl :: layout :: patternlayout, ¾Æ¸¶ÀÌ this.log :: log4perl :: dateformatÀº http : //¿¡ÀÖ´Â log4j spec¿¡ µû¶ó ³¯Â¥¸¦ Æ÷¸Ë ÇÒ ³¯Â¥¸¦ ÁöÁ¤ÇÒ ¼öÀÖ´Â Æ÷¸ËÅÍÀÔ´Ï´Ù. java.sun.com/j2se/1.5.0/docs/api/java/text/simpledateformat.htmlwhich ´ÙÀ½ ÀÚ¸® Ç¥½ÃÀÚ¸¦ ÀÎ½Ä ¹× ó¸® ÇÒ ¼ö ÀÖ½À´Ï´Ù. ±âÈ£ ÀÇ¹Ì ÇÁ·¹Á¨Å×ÀÌ¼Ç ¿¹Á¦ --------- ------------------ G-G-----------------------------------) ) AM / PM (1 ~ 12) (¼ö) 12 ½Ã°£ µ¿¾È 10 ½Ã°£ (0 ~ 23) (¼ýÀÚ) 0 m ºÐ (¼ýÀÚ) 30 ÃÊ ºÐ´ç (¼ýÀÚ) 55 ÃÊ ¹Ð¸® ÃÊ (¼ö) ) 978 ÁÖ ÀÏÁÖÀÏ (ÅؽºÆ®) È¿äÀÏ D ÀÏ ³â (¼ýÀÚ) 189 F ÀÏ (¼ö) 2 (7 ¿ù 2 ÀÏ) W 1 ³â (¼ö) 2 ¿ù 27 ÀÏ ¿ù (¼ö) 2 AM / PM ¸¶Ä¿ (ÅؽºÆ®) PM k ½Ã°£ (1 ~ 24) (¼ýÀÚ) AM / PM¿¡¼ 24k ½Ã°£ (0 ~ 11) (¼ýÀÚ) ) 0 Z ½Ã°£´ë (ÅؽºÆ®) ÅÂÆò¾ç Ç¥Áؽà ½Ã°£ z RFC 822 ½Ã°£´ë (ÅؽºÆ®) -0800 'ÅؽºÆ® (±¸ºÐ ±âÈ£)' '´ÜÀÏ Àο빮' '¿¹¸¦ µé¾î ÇöÀç UNIX ½Ã°£À» Æ÷¸ËÇÏ·Á´Â °æ¿ì " mm / dd hh : mm "Çü½Ä, ¸ðµç ¼öÇà ÇؾßÇÏ´Â °ÍÀº ´ÙÀ½°ú °°½À´Ï´Ù. log :: log4perl :: dateformat; MY $ FROOM = LOG :: LOG4PERL :: DATEFORMAT-> NEW ( "mm / dd hh : mm"); ³» $ time = ½Ã°£ (); $ format-> Çü½Ä Àμâ ($ ½Ã°£), "n"; new () ¸Þ¼µå´Â °ªÀ» ÆĽÌÇÏ°í Àå¸é µÚ¿¡ÀÖ´Â ¸ðµç Á¾·ùÀÇ ±¸Á¶¸¦ ¼³Á¤ÇÏ°í format () formate ()¿¡ ´ëÇÑ ÈÄ¼Ó Á¶Ä¡°¡ ºü¸£°Ô ¼³Á¤µÇ¾î Àֱ⠶§¹®¿¡, DateFormatÀº localtime () ¹× sprintf ()¸¦ ÇÑ ¹ø È£ÃâÇÏ¿© Çü½ÄÀÌ ÁöÁ¤µÈ ³¯Â¥ / ½Ã°£ String.so¸¦ ¹ÝȯÇϱ⠶§¹®¿¡ ÀϹÝÀûÀ¸·Î Æ÷¸ËÅ͸¦ ÇÑ ¹ø ÃʱâÈ ÇÑ ´ÙÀ½ ¸ðµç Á¾·ùÀÇ ½Ã°£ °ªÀ» Ç¥½ÃÇϱâ À§ÇØ ¹Ýº¹Çؼ ´Ù½Ã »ç¿ëÇؾßÇÕ´Ï´Ù. ¶ÇÇÑ, ±ÍÇÏÀÇ ÆíÀǸ¦ À§ÇØ ´ÙÀ½°ú °°Àº ¹Ì¸® Á¤ÀÇ µÈ Çü½ÄÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù : LOG4J »ç¾ç¿¡ ¼³¸í µÈ´ë·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù : Çü½ÄÀº Àý´ë "HH : mm : SS, SSS"15 : 49 : 37,459 "³¯Â¥"DD MMM YYYY HH : MM : SS, SSS "061994 ³â 11 ¿ù 15 ÀÏ 15 : 49 : 37,459"YYYY-MM-DD HH : MM : SS, SSS ""1999-11-2715 : 49 : 37,459 "Apache" "" "·Î±× :: log4perl :: dateformat-> new ("HH : mm : ss, sss "); ´ç½ÅÀº ¶ÇÇÑ ·Î±×¸¦ ¸»ÇÒ ¼ö ÀÖ½À´Ï´Ù. :: log4perl :: dateformat-> new ( "absolute"); ³ªÁß¿¡ µ¿ÀÏÇÑ °á°ú¸¦ ¾òÀ¸½Ê½Ã¿À. ¿ä±¸ »çÇ× : ¡¤ Perl.
log :: log4perl :: DateFormat. °ü·Ã ¼ÒÇÁÆ®¿þ¾î
java :: JCR :: NoDetype.
java :: JCR :: NoDetypeÀº JCR ³ëµå À¯Çü Ŭ·¡½º ·¦ÆÛ¸¦·Îµå ÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. ...
164
¹ÙÀÌ¿À :: µµ±¸ :: Run :: JavarUnner.
BIO :: µµ±¸ :: RUN :: JavarUnner´Â Java ÇÁ·Î±×·¥À» ½ÇÇàÇÒ ¼öÀÖ´Â Perl ¸ðµâÀÔ´Ï´Ù. ...
244