ããã¯ãUbuntu OnlineãFedora OnlineãWindowsãªã³ã©ã€ã³ãšãã¥ã¬ãŒã¿ãŒãMACOSãªã³ã©ã€ã³ãšãã¥ã¬ãŒã¿ãŒãªã©ã®è€æ°ã®ç¡æãªã³ã©ã€ã³ã¯ãŒã¯ã¹ããŒã·ã§ã³ã®XNUMXã€ã䜿çšããŠOnWorksç¡æãã¹ãã£ã³ã°ãããã€ããŒã§å®è¡ã§ããå Žåã®ã³ãã³ãã§ãã
ããã°ã©ã ïŒ
NAME
ãã€-ãããã«ãªå人ã«ã¬ã³ããŒããã°ã©ã
SYNOPSIS
ãã€
[ãªãã·ã§ã³] [ã³ãã³ã]ã®å Žå
åºæ¬çãªèãæ¹ã¯ãã³ãã³ãã©ã€ã³ã§ãwhenããšå ¥åããããšã§ãã åããŠå®è¡ãããšã
ããã°ã©ã ã§ã¯ãããã€ãã®ã»ããã¢ããæ å ±ã®å ¥åãæ±ããããŸãã ã®ã«ã¬ã³ããŒãã¡ã€ã«ãç·šéããã«ã¯
ãæ°ã«å ¥ãã®ç·šéè ã¯ããwheneããå®è¡ããŸãã ã«ã¬ã³ããŒãã¡ã€ã«ã®åºæ¬çãªåœ¢åŒã¯æ¬¡ã®ãšããã§ãã
2003幎3æXNUMXæ¥ãã¹ããã¯ãã«ã ã«é£ãã§ããŒãã«è³ãåè³ã
ã«ã¬ã³ããŒãã¡ã€ã«ãäœæããããã³ãã³ããããwhenããšããŠããã°ã©ã ãå®è¡ããŸãã
lineã¯ã次ã®XNUMXé±éã®ã«ã¬ã³ããŒã«ãããã®ãå°å·ããŸãã
ã³ãã³ã
i ä»åŸã®ã¢ã€ãã ãã«ã¬ã³ããŒã«å°å·ããŸãã ïŒããã¯ããã©ã«ãã®ã³ãã³ãã§ããïŒ
c å æã®ã«ã¬ã³ããŒïŒå£æãã«ã¬ã³ããŒã®ãããªã°ãªãããã¢ã€ãã ã¯è¡šç€ºãããªãïŒãå°å·ãã
ä»æããããŠæ¥æã
e ãæ°ã«å ¥ãã®ãšãã£ã¿ãåŒã³åºããŠãã«ã¬ã³ããŒãã¡ã€ã«ãç·šéããŸãã
w,m,y ããã©ã«ãã§ã¯ãªããæ¥é±ãæããŸãã¯å¹Žã®ã¢ã€ãã ãå°å·ããŸã
XNUMXé±éã®æéã
j å€æŽããããŠãªãŠã¹æ¥ãå°å·ããŸãïŒXNUMXã€ã®éã®æéééãèŠã€ããã®ã«åœ¹ç«ã¡ãŸã
æ¥ä»ïŒã
d çŸåšã®æ¥ä»ã ããå°å·ããŸãã
OPTIONS
--helpãé€ã次ã®ãã¹ãŠã®ãªãã·ã§ã³ã¯ãèšå®ãã¡ã€ã«ã§èšå®ã§ããŸãã
ç/åœã®ãªãã·ã§ã³ã¯ãã³ãã³ãã©ã€ã³ã§--optionãŸãã¯--nooptionãšããŠèšå®ã§ããŸãã
ãªãã·ã§ã³ã0ãŸãã¯1ã«èšå®ããŠãèšå®ãã¡ã€ã«ãäœæããŸãã
--helpç°¡åãªãã«ãã¡ãã»ãŒãžãåºåããŸãã
- ããŒãžã§ã³
ãœãããŠã§ã¢ã®ããŒãžã§ã³ãå«ãç°¡åãªã¡ãã»ãŒãžãåºåããŸã
ã§ãã
--language = LANG
èšèªãLANGã«èšå®ããŸãã åœéåã«ã€ããŠã¯ã以äžã®ã»ã¯ã·ã§ã³ãåç §ããŠãã ããã ãã®
èšèªã¯èªåçã«æ€åºããããããéåžžã¯ãªãã·ã§ã³ã¯å¿ èŠãããŸããã
--future = DAYS
ã¬ããŒãã延é·ãããã®ã¯äœæ¥åŸã§ããã ããã©ã«ãïŒ14
--past = DAYS
ã¬ããŒããäœæ¥åãŸã§å»¶é·ãããŸããã --futureãªãã·ã§ã³ã®ããã«ã-past
çŸåšã®æ¥ä»ã«å¯Ÿãããªãã»ãããšããŠè§£éããããããéåžžã¯æ¬¡ã®ããã«ãªããŸãã
ãããè² ã®å€ã«ããŸãã ããã©ã«ãïŒ-1
--calendar = FILE
ã«ã¬ã³ããŒãã¡ã€ã«ã ããã©ã«ãã§ã¯ãèšå®ã§æå®ããããã¡ã€ã«ã䜿çšããŸã
ãã¡ã€ã«ãããã¯ãWhenãåããŠå®è¡ãããšãã«èšå®ãããŸãã
--editor = COMMAND
ãšãã£ã¿ãŒãåŒã³åºãããã«äœ¿çšãããã³ãã³ãã ããã©ã«ãïŒ "emacs -nw"äŸïŒwhen
--editor = "vim"
--wrap = COLUMNS
åºåçšã®ããã¹ãã®åæ°ïŒãŸãã¯ãæãè¿ããããªãå Žåã¯0ïŒã
ããã©ã«ãïŒ80
-[no] wrap_auto
端åã®å¹ ãæ€åºããåºåã®å¹ ãèšå®ããŠã¿ãŸã
ã«ãããšã ããã¯ãåºåãttyã§ããå Žåã«ã®ã¿é©çšããã
--wrap_maxã«ãã£ãŠèšå®ãããæ倧å€ã --wrapã§èšå®ãããå€ãäžæžãããŸãã ããã©ã«ãïŒããã
--wrap_max = COLUMNS
åºåçšã®ããã¹ãã®æ倧åæ°ïŒãŸãã¯ãå¿ èŠããªãå Žåã¯-1ïŒ
æ倧ïŒã --wrap_autoãšçµã¿åãããŠäœ¿çšââãããšãéåžžã«èªã¿ããããªããŸãã
倧ããªã¿ãŒããã«ãŠã£ã³ããŠã ããã©ã«ãïŒ-1
--rows = COLUMNS
ã¿ãŒããã«ãŠã£ã³ããŠã«åãŸãããã¹ãã®è¡æ°ã ããªãããªã¹ããããšã
ã«ã¬ã³ããŒã§ã¯ãçµæãåŸãããªãéããåºåã¯ãã®é·ãã«åãæšãŠãããŸã
XNUMXæ¥ä»¥å ã«ãªã¹ãããŸãã ãã®åäœã¯äžæžããããŸãïŒ
--futureãªãã·ã§ã³ãæå®ãããŠããå Žåãæ倧è¡æ°ã¯ç¡é倧ã«èšå®ãããŸãïŒ
æ瀺çã«ããŸãã¯mãŸãã¯yã³ãã³ãã䜿çšãããŠããå Žåã ããã©ã«ãïŒ40
-[no] rows_auto
ã§èšå®ãããå€ã䜿çšããã®ã§ã¯ãªãã端æ«ã®é«ããæ€åºããŠã¿ãŠãã ãã
--rowsãªãã·ã§ã³ã ããã¯ãåºåãttyã®å Žåã«ã®ã¿é©çšãããŸãã ãã¹ãŠã®å€ããªãŒããŒã©ã€ãããŸã
--rowsã«ãã£ãŠèšå®ãããŸãã ããã©ã«ãïŒã¯ã
-[no]ããããŒ
iãcãwãmãããã³yã³ãã³ãã®åºåã®äžéšã«ããããŒãåºåããŸãã ãã£ãã©ã«ãïŒ
ã¯ã
-[no]ããŒãžã³ã°
åºåãrowsãŸãã¯rows_autoã§èšå®ãããå€ãããé·ãå Žåã¯ãããŒãžã£ãŒã䜿çšããŠ
åºåã衚瀺ããŸãã ïŒPAGERããã³LESSç°å¢å€æ°ãå°éãããŸãã
PAGERãèšå®ãããŠããããããã©ã«ãã¯ãlessãã§ããïŒããã©ã«ãïŒyes
--paging_less_options
ãã±ãããã«ããå°ãªããå Žåã®è¿œå ãªãã·ã§ã³ã ããã©ã«ãïŒã-rXFEã
-[no] filter_accents_on_output
ã¢ã¯ã»ã³ãä»ãæåãã¢ã¯ã»ã³ããªãæåã«å€æŽãããã©ããã ããã©ã«ãïŒã¯ãããã ã
$ TERMç°å¢å€æ°ã¯ãmltermããŸãã¯ãxtermããšåãã§ãã
-[no] styled_output
åºåã端æ«ã®å Žåãã¹ã¿ã€ãªã³ã°ã«ANSI端æ«ã³ãŒãã䜿çšããå¿ èŠããããŸããïŒ
ããã©ã«ãïŒã¯ã
-[no] styled_output_if_not_tty
ã¿ãŒããã«ã§ãªããŠããåºåã®ã¹ã¿ã€ã«ãèšå®ããŸãã ããã©ã«ãïŒããã
--calendar_today_style = STYLE
--items_today_style = STYLE
ãããã®æåã®ãã®ã¯ãã«ã¬ã³ããŒãå®è¡ãããšãã«ä»æ¥ã®æ¥ä»ãã¹ã¿ã€ã«ããæ¹æ³ã瀺ããŠããŸãïŒcïŒ
æå³ã XNUMXã€ç®ã¯ãã¢ã€ãã ãå®è¡ãããšãã«ãä»æ¥ããšããåèªã®ã¹ã¿ã€ã«ãèšå®ããæ¹æ³ã瀺ããŠããŸãïŒiïŒ
æå³ã ããã©ã«ãïŒå€ªå
åºåã®ã¹ã¿ã€ã«ã¯ã次ã®ããŒã¯ãŒãã䜿çšããŠæå®ã§ããŸãïŒboldã
äžç·ãåŒãããç¹æ» ããŸãã ããã¹ãã®è²ãå€æŽããã«ã¯ã次ã䜿çšããŸãïŒfgblackãfgredã
fggreenãfgyellowãfgblueãfgpurpleãfgcyanãfgwhiteã èæ¯ãå€æŽããã«ã¯
è²ãåæ§ã®ããŒã¯ãŒãã䜿çšããŸãããfgã®ä»£ããã«bgã䜿çšããŸãã äŸïŒãã€
--calendar_today_style = "boldãfgredãbgcyan" c
-ãã¬ãã£ã«ã¿ãŒ
ã«ã¬ã³ããŒãã¡ã€ã«ãèªã¿åãåã«ãããã°ã©ã ã«ãã€ãããŸãã ãã£ãã©ã«ãïŒ ""
--now = "YMD"
ä»æ¥ã¯å¥ã®æ¥ä»ã®ãµããããŸãã
-[no] neighbor_months
ãwhencãã®ããã©ã«ãã®åäœã¯ãå æã®ã«ã¬ã³ããŒãå°å·ããããšã§ãã
æããããŠæ¥æã --noneighboring_monthsãéžæãããšãå°å·ãåé¿ã§ããŸã
--pastããã³--futureã§èšå®ãããç¯å²ã«å«ãŸããªãææ°ã
-[no] monday_first
æ¥ææ¥ã§ã¯ãªããæææ¥ããé±ãéå§ããŸãã ããã©ã«ãïŒããã
-[no] orthodox_easter
æ£æäŒã®ã«ã¬ã³ããŒã«åŸã£ãŠã€ãŒã¹ã¿ãŒãèšç®ããŸãã ããã©ã«ãïŒããã
-[no] ampm
12æéå¶ã§ã¯ãªãã24æéå¶ã䜿çšããŠæå»ã衚瀺ããŸãã 圱é¿ããããŸã
å ¥åæéã®è§£æã ããã©ã«ãïŒã¯ã
--auto_pm = x
xæªæºã®æéã§æå»ãå ¥åãããAMãŸãã¯PMãå ¥åãããŠããªãå Žå
æ瀺çã«æå®ãããšãAMã§ã¯ãªãPMã§ãããšèªåçã«æ³å®ãããŸãã
ããã©ã«ãïŒ0
-[no] literal_only
ã2008幎4æXNUMXæ¥ããªã©ããªãã©ã«ã®æ¥ä»ãšããŠæå®ãããã¢ã€ãã ã®ã¿ã衚瀺ããŸãã ããªãã§ãã ãã
ãw = thuãã®ãããªåšæçãªã¢ã€ãã ãªã©ãåŒã§å®çŸ©ãããã¢ã€ãã ã衚瀺ããŸãã
ããã©ã«ãïŒããã
--test_expression
--bare_version
--make_filter_regex
--test_accent_filtering
ãããã®ãªãã·ã§ã³ã¯ãæ§ç¯ãšãã¹ãã®ããã«å éšçã«äœ¿çšãããŸãã
DESCRIPTION
æ¥æ ã¯éåžžã«ã·ã³ãã«ãªããŒãœãã«ã«ã¬ã³ããŒããã°ã©ã ã§ãUnixãªã¿ã¯ã察象ãšããŠããŸãã
ãããã«ãªäœãã ããã¯ããªããç¹å®ã®æ¥ã«ããå¿ èŠãããããšã远跡ããããšãã§ããŸãã
ããã«ã¯ããããã®ã«ã¬ã³ããŒãšãå人æ å ±ç®¡çè ãããã°ã©ã ãããã®ã§ã
䜿çšããçç±ã¯äœã§ãã æ¥æ?
ããã¯éåžžã«çããŠåçŽãªããã°ã©ã ãªã®ã§ãèªåã§ç°¡åã«ããããåãããšãã§ããŸãã
ã©ã€ãã©ãªã«äŸåããªããããã€ã³ã¹ããŒã«ãç°¡åã§ãã ã€ã³ã¹ããŒã«ã§ããã¯ãã§ã
ã€ã³ã¹ããŒã«ããæš©éããªããŠããPerlãå©çšå¯èœãªãã¹ãŠã®ã·ã¹ãã ã§ãããå®è¡ã§ããŸã
ã©ã€ãã©ãªã
ãã®ãã¡ã€ã«åœ¢åŒã¯ããæ°ã«å ¥ãã®ãšãã£ã¿ã§ç·šéã§ããåçŽãªããã¹ããã¡ã€ã«ã§ãã
ããã æ¥æ Perlãå©çšå¯èœãªã»ãŒãã¹ãŠã®ãªãã¬ãŒãã£ã³ã°ã·ã¹ãã ã§å®è¡ããå¿ èŠããããŸãã
ãã®ããã¥ã¡ã³ãã§ã¯ãUnixã®ãã¬ãŒããŒãå®è¡ããŠãããšä»®å®ããŸãã
ã€ã³ã¹ããŒã« ãã㊠ååŸ éå§ããŸãã
rootãšããŠãã°ã€ã³ããŠãããšãã«ã次ã®ã³ãã³ããå®è¡ããŸãã
make installã
ã©ã³ æ¥æ ãã®ã³ãã³ããåããŠäœ¿çšããå ŽåïŒ
ãã€
ã«ã¬ã³ããŒãã¡ã€ã«ã®èšå®ã«å¿ èŠãªæ å ±ã®å ¥åãæ±ããããŸãã
USE
ããªããèµ°ã£ãã æ¥æ å床ãåæã»ããã¢ããã®å®è¡åŸã次ã®XNUMXè¡ãåºåããå¿ èŠããããŸãã
çŸåšã®æ¥ä»ã瀺ãããã¹ãã ããªãã®
ã«ã¬ã³ããŒãã¡ã€ã«ã空ãªã®ã§ãäºå®ã¯ãããŸããã
ããã§ãã«ã¬ã³ããŒãã¡ã€ã«ã«ã¢ã€ãã ãå ¥ãå§ããããšãã§ããŸãã åé ç®ã¯ã次ã®ãããªããã¹ãè¡ã§ãã
次ã®ããã«ãªããŸãã
2003幎3æXNUMXæ¥ãã¹ããã¯ãã«ã ã«é£ãã§ããŒãã«è³ãåè³ã
ã«ã¬ã³ããŒãã¡ã€ã«ãç·šéãã䟿å©ãªæ¹æ³ã¯ã次ã®ã³ãã³ãã䜿çšããããšã§ãã
ãã€e
ããã«ããããæ°ã«å ¥ãã®ãšãã£ã¿ãŒïŒå®è¡æã«éžæãããšãã£ã¿ãŒïŒã衚瀺ãããŸãã æ¥æ æåã®
æéïŒã
æ¥ä»ã¯å¹Ž-æ-æ¥ã®åœ¢åŒã§ããå¿ èŠããããŸãããæã綎ãããäžããããšãã§ããŸã
æ°ãšããŠã ïŒæã®ååã§ã¯å€§æåãšå°æåãåºå¥ãããªããããè¡šçŸãããã©ããã¯é¢ä¿ãããŸãã
FãFeãFebãFebruaãªã©ã®XNUMXæã ããã¯ãã ãŠããŒã¯ãªäžèŽã§ãªããã°ãªããŸããã ããªãã¯ã§ãã
æ«å°Ÿã«ããä»ããŸããããã¯ç¡èŠãããŸãã ãã§ã³èªã§ã¯ããcerãã¯ç¥èªãšããŠäœ¿çšã§ããŸã
Cervenã®å Žåã¯ãcecããCervenecã®å Žåã¯ãcecããïŒäœåãªç©ºçœã¯ã
ã«ã³ãã®åŸã®å®éã®ããã¹ãã 空çœè¡ãšïŒèšå·ã§å§ãŸãè¡ã¯ç¡èŠãããŸãã
ããªããä»å®è¡ããå Žå æ¥æãã«ã¬ã³ããŒãã¡ã€ã«å ã®ãã¹ãŠã®ã¢ã€ãã ã®ãªã¹ããå°å·ããŸãã
ç¹å®ã®æéééå ã«ãããŸãã ïŒã€ã³ã¿ãŒãã«ã¯æšæ¥ããå§ãŸããŸãã æ¥æ åªãã
åºåãã¿ãŒããã«ãŠã£ã³ããŠã«åãŸãããã«æéééã®çµãããéžæããŸããã
åžžã«å°ãªããšãXNUMXæ¥ãå°æ¥ã¯XNUMXé±é以å ã«ãªããŸããïŒãã¹ãŠã衚瀺ããã«ã¯
ç¿æã®ã¢ã€ãã ã¯ããmã®ãšãããå®è¡ããåæ§ã«XNUMX幎éãyããŸãã¯XNUMXåå®è¡ããŸã
é±ãwã
ããªãããcã®ãšããããããªãã æ¥æ å æãä»æã次ã®ã«ã¬ã³ããŒãå°å·ããŸã
æã
ãããã®ã³ãã³ããçµã¿åãããããšãã§ããŸãã ããšãã°ããwhen cwãã¯ã«ã¬ã³ããŒãå°å·ãã
次ã«ã次ã®é±ã®ã¢ã€ãã ã衚瀺ããŸãã
èªçæ¥ãèšå¿µæ¥ãªã©ã幎ã«XNUMXåçºçããã€ãã³ãã®å Žåã¯ã次ã®ããããã䜿çšã§ããŸãã
幎ã®ä»£ããã«*ã
* 25æXNUMXæ¥ãã¯ãªã¹ãã¹
ãŸãã¯ãã¢ã¹ã¿ãªã¹ã¯ãä»ãã幎ã䜿çšããŸãã
1920 * 29æXNUMXæ¥ããã£ãŒãªãŒããŒã«ãŒã¯\ aã«ãªãã\ yã§çãŸããŸãã
XNUMXçªç®ã®äŸã§ã¯ã\ aã¯ä»å¹Žã®ãã£ãŒãªãŒããŒã«ãŒã®å¹Žéœ¢ã瀺ãã\ y
圌ãçãŸãã幎ãåçŸããŸããã€ãŸããåºåã¯æ¬¡ã®ããã«ãªããŸãã
ä»æ¥2003幎29æ83æ¥ãã£ãŒãªãŒããŒã«ãŒã¯1920æ³ãXNUMX幎çãŸã
æ¯é±è¡ãå¿ èŠãããããšã«ã€ããŠã¯ãw = xxxãšãã圢åŒã®åŒã䜿çšã§ããŸãã
xxxã¯ãããªãã®èšèªã§ã®ææ¥ã®ååã®æåã®æ°æåã§ãã ïŒå
ãããŸãããæé€ããã®ã«ååãªæåãæäŸããå¿ èŠããããŸããããšãã°ãè±èªã§ã¯ãw = thãŸãã¯w = tuã§ããã
ã¡ããã©w = tãïŒäŸïŒ
w =倪éœãæäŒã«è¡ãã10ïŒ00
å®éã«ã¯ããããããåªãããã¹ããè¡ãããšãã§ããŸãã 詳现ã«ã€ããŠã¯ãã»ã¯ã·ã§ã³ãåç §ããŠãã ãã
以äžã®ããã¡ã³ã·ãŒãã¹ããã äžè¬çãªäŒæ¥ãèšå®ããæ¹æ³ã¯æ¬¡ã®ãšããã§ãã
m = janïŒw = monïŒa = 3ãããŒãã£ã³ã«ãŒãµãŒãã³ã°ããŒ
* 14æXNUMXæ¥ããã¬ã³ã¿ã€ã³ããŒ
m = febïŒw = monïŒa = 3ãã¯ã·ã³ãã³ã®èªçæ¥ã芳å¯
m = mayïŒw = sunïŒa = 2ãæ¯ã®æ¥
m = mayïŒw = monïŒb = 1ãã¡ã¢ãªã¢ã«ããŒ
m = junïŒw = sunïŒa = 3ãç¶ã®æ¥
* 4æXNUMXæ¥ãç¬ç«èšå¿µæ¥
m = sepïŒw = monïŒa = 1ãã¬ã€ããŒããŒ
m = octïŒw = monïŒa = 2ãã³ãã³ãã¹ããŒ
m = octïŒw = monïŒa = 2ãæè¬ç¥ïŒã«ããïŒ
* 11æXNUMXæ¥ãäŒæŠèšå¿µæ¥
m = novïŒw = thuïŒa = 4ãæè¬ç¥ïŒç±³åœïŒ
e = 47ããã«ãã£ã°ã©
e = 46ãç°ã®æ°Žææ¥
e = 7ãPalmSunday
e = 0ãã€ãŒã¹ã¿ãŒãµã³ããŒ
e = 0-49ããã³ãã³ã¹ãïŒã€ãŒã¹ã¿ãŒãã49æ¥åŸïŒ
ç±³åœã§ã¯ãç¹å®ã®äŒæ¥ãé±æ«ã«ãªããšãé£éŠæ¿åºã®åŽåè ã ãã§ãªããå€ãã®
æ°éã®åŸæ¥å¡ã¯ãæææ¥ãŸãã¯éææ¥ã«äŒæãåããŸãã å®å šãªãªã¹ãã¯ã§äžããããŸã
http://www.opm.gov/operating_status_schedules/fedhol/2011.aspã ã®ãªãã€ã³ããŒãå¿ èŠãªå Žå
äŒæ¥ãšä»äºãèŸããæ¥ã®äž¡æ¹ããããããªããã©ã®ããã«èšå®ãããã®äŸã§ã
ãããŸã§ïŒ
* 4æXNUMXæ¥ãç¬ç«èšå¿µæ¥
m = 4æïŒc = XNUMXãç¬ç«èšå¿µæ¥ïŒé£éŠç¥æ¥ãšããŠèŠ³å¯ïŒ
åœéå
æ¥æ ãã§ã³èªããã³ããŒã¯èªããªã©ã³ãèªãè±èªããã©ã³ã¹èªããã€ãèªã
ã®ãªã·ã£èªããã³ã¬ãªãŒèªãã€ã¿ãªã¢èªãããŒã©ã³ãèªãã«ãŒããã¢èªãã¹ãã€ã³èªããŠã¯ã©ã€ãèªã ããã æ¥æ ãããŠããªã
ããªãã®èšèªã«ç¿»èš³ãããããŸãã¯éšåçã«ãã翻蚳ãããŠããªãããã¹ã
翻蚳ããããã®ã¯è±èªã§è¡šç€ºãããŸãã æ¥æ äœãèªåçã«æ€åºããå¿ èŠããããŸã
ïŒ$ LANGç°å¢å€æ°ãä»ããŠïŒäœ¿çšããèšèªãããã³ æ¥æ 翻蚳ãããŸãã
ãã®èšèªã«ãããã¯ããªããåŸããã®ã§ã- æ¥æã®åºåã¯ããªãã®èšèªã«ãªãã
æ¥æ ãŸããã«ã¬ã³ããŒãã¡ã€ã«ã§ãã®èšèªãååã«äœ¿çšããããšãæåŸ ããŸã
æãšææ¥ã
ã«ã¬ã³ããŒãã¡ã€ã«ã¯UTF-8ïŒãŸãã¯UTF-8ã®ãµãã»ããã§ããASCIIïŒã§ããå¿ èŠããããŸãã ããããªãã®
ã«ã¬ã³ããŒãã¡ã€ã«ã¯ãISO-8859ãªã©ã®ä»ã®ãšã³ã³ãŒãã£ã³ã°ã§ãã æ¥æ éåžžã次ã®ããšãã§ããããã«ãªããŸã
ãããæ€åºãããããèªãããšãæåŠããŸãã ã³ãã³ãã©ã€ã³ãªãã·ã§ã³ã«ã¯ãUTF-8ãå«ããããšãã§ããŸãã
äžéšã®ã¿ãŒããã«ãšãã¥ã¬ãŒã¿ïŒatermã...ïŒã¯ãã¢ã¯ã»ã³ãä»ãæåãã¬ããŒãžãšããŠè¡šç€ºããŸãããä»ã®ãšãã¥ã¬ãŒã¿ã¯
ïŒmltermãxterm ...ïŒã¯ããããæ£ãã衚瀺ã§ããŸãã æ¥æ $ TERMç°å¢ããã§ãã¯ããŸã
å€æ°ã§ããããmltermããŸãã¯ãxtermããšçããå Žåãã¢ã¯ã»ã³ãä»ãæåã¯æ¬¡ã®ããã«ãªããŸãã
衚瀺ãããŸãã ãã以å€ã®å Žåã¯ãåºåããé€å€ãããŸãã ããããªãŒããŒã©ã€ãã§ããŸã
次ã®ãããªè¡ã眮ã
filter_accents_on_output = 0
or
filter_accents_on_output = 1
èªå㧠ã/ .when / Preferences ãã¡ã€ã«ã ã§ãããŠãŒã¶ãŒããã®é£çµ¡ã«èå³ããããŸã
$ TERMå€æ°ã解éããããšãããããããã®ããã®ããè¯ãã¡ã«ããºã ãææ¡ããŸãã
å ¥åã§ã¯ãã¢ã¯ã»ã³ãã¯èš±å¯ãããŸãããå¿ é ã§ã¯ãããŸãããããšãã°ããã©ã³ã¹èªã®å ¥åãã¡ã€ã«ã§ã¯ã
2005 Fev 17ã®æ¥ä»ã«ã¯ãã¢ã¯ã»ã³ãä»ãã®eãŸãã¯ã¢ã¯ã»ã³ãã®ãªãeãä»ããŠãã©ã¡ãããæå®ã§ããŸãã
åäœããŸãã å ¥åããæãŸãã¯ææ¥ãããªãã®ãããã«ãäžèŽããªãå Žå
èšèªããã㊠æ¥æ 代ããã«è±èªãšããŠè§£éããããšããŸãã
ããªãã¯æ¬¡ã®ãããªè¡ã眮ãããšãã§ããŸã
èšèª= fr
èšå®ãã¡ã€ã«ã§èšèªãèšå®ããããã§--languageãªãã·ã§ã³ãæå®ããŸã
ã³ãã³ãã©ã€ã³ããã ãã$ LANGç°å¢å€æ°ãèšå®ãããŠããå Žåã¯å¿ èŠãããŸããã
æ£ãã
FORMAT OF ã 奜㿠FILE
åè¡ã¯æ¬¡ã®ãããªãã®ã§æ§æãããŠããŸãã
å€æ°=å€
å€å ãé€ããã¹ãŠã®å Žæã§ç©ºçœã¯ç¡èŠãããŸãã å€æ°åã¯å€§æåãšå°æåãåºå¥ãããŸã-
éæã 空çœè¡ã¯ç¡èŠãããŸãã
MORE äŸ
ãã°ã€ã³æã«ã·ã§ã«ãå®è¡ãããããã®äŸ¿å©ãªã³ãã³ãã¯æ¬¡ã®ãšããã§ãã
--past = 0 --future = 1ã®å Žå
ä»åŸXNUMX幎éã®ã«ã¬ã³ããŒãå°å·ããã«ã¯ïŒ
--past = 0 --future = 365ã®å Žåc
ãããã³ã° UP ãµãã©ã€ã€ ã«ã¬ã³ã㌠WHEN çæ§ã®ããã㧠LOG IN
ããªããæ¯æ¥ãããèŠãã®ãå¿ãããªãã°ãããªãã®ã«ã¬ã³ããŒã¯ããªãã«äœã®åœ¹ã«ãç«ããªãã ç°¡åãªæ¹æ³
ãã°ã€ã³æã«ãããã¢ããããã®ã¯ã.xsessionãŸãã¯.xinitrcãã¡ã€ã«ã次ã®ããã«ããããšã§ãã
ãã®ïŒ
/ usr / bin / when --past = 0 --future = 1ïŒ>ã/ when.today
emacs -geometry 70x25-bgãã¹ã¯ ã/ when.today &
startkde
.xsessionãã¡ã€ã«ã¯ããã·ã³ã«ã°ã©ãã£ã«ã«ãã°ã€ã³ãããŒãžã£ãŒãèšå®ããŠããå Žåã«äœ¿çšãããŸãã
ããã§ãªãå Žåã¯.xinitrcã ãã®äŸã§ã¯ãæåã®è¡ã§ã«ã¬ã³ããŒã
ãã¡ã€ã«ã ãžã®å®å šãªãã¹ æ¥æ ã·ã§ã«ã®ãã¹å€æ°ãäžããããã®ã§ãããã°ã©ã ãäžããããŸã
ãããå®è¡ãããšããŸã é©åã«åæåãããŸããã XNUMXè¡ç®ã¯GUIemacsããããã¢ããããŸã
ç®ãåŒãããã«ç¬ç¹ã®è²åãã®çªã æåŸã®è¡
ãŠã£ã³ããŠãããŒãžã£ãŒããã®äŸã§ã¯KDEãèµ·åããŸãã 䜿çšãããŠã£ã³ããŠãããŒãžã£ãŒãäœã§ããã
ãããéå§ãããã¡ã€ã«ã«æ¢åã®è¡ãä¿æããŠããããšã確èªãã次ã®ããšã確èªããŠãã ãã
ãã®è¡ã¯ãã¡ã€ã«ã®æåŸã®è¡ã§ãã
䞊ã¹æ¿ã BY ã¿ã€ã OF æ¥
ããæ¥ã«ããæ§ã ãªã¢ã€ãã ãããªã³ãã¢ãŠããããå Žå
é åºããããè¡ãæãç°¡åãªæ¹æ³ã¯ãå ¥åãã¡ã€ã«ã«ãã®é åºã§ãããã眮ãããšã§ãã ããã
ãã ããäžéšã®ã¢ã€ãã ãã«ãã£ãŠæ±ºå®ãããæ¥ä»ã«ããå Žåãã¡ãœããã¯æ©èœããŸããã
æ瀺çã«äžããããã®ã§ã¯ãªããåŒã ããããããæãäžè¬çãªçç±
ããçš®ã®ããšã¯ãããªããäžæ¥ã®ç¹å®ã®æéã«ããªããããªããã°ãªããªãããšãæã£ãŠãããšããããšã§ãããããŠ
ããªãã¯ããããæéã§åé¡ãããã®ã§ãã ãã®ç¶æ³ã§ã¯ãæåã«æéãäžããããšãã§ããŸã
ã¢ã€ãã ã®ããã¹ãã®ãããã³ æ¥æ ãããèªèããæéã§ã¢ã€ãã ã䞊ã¹æ¿ããŸãã æéã¯ããããšãã§ããŸã
hïŒmmãŸãã¯hhïŒmm圢åŒã --ampmãèšå®ãããŠããå Žåããªãã·ã§ã³ã®ãµãã£ãã¯ã¹aãŸãã¯pã䜿çšã§ããŸãã
ååãŸãã¯ååŸãããšãã°åå9æ30åã¯åå9æ30åã AM / PMæå»ã䜿çšããå Žåã¯ãããšãã°ã次ã®ããã«èšå®ããããšãã§ããŸãã
--auto_pm = 9ã§ããããã9æéæªæºã¯èªåçã«PMãšèŠãªãããŸãã ããã
äŸïŒ
2010幎25æ7æ¥00:XNUMXã¢ãã«ã³ãµã³ãã£ã«ãªã¹ãã³ãã¥ãŒã³ã§ã®å€é£
w =倪éœã10ïŒ00æäŒ
25幎2010æXNUMXæ¥ã¯æ¥ææ¥ãªã®ã§ããã®æ¥ã«äž¡æ¹ã®ã¢ã€ãã ã衚瀺ãããŸãã ããã
--auto_pmã8以äžã«èšå®ãããŠããå Žåã7ïŒ00ã¯èªåçã«7:00ãšããŠè§£éãããŸã
ååŸããããŠå€é£ã®æ¥ä»ã¯æã®æäŒã®ååŒã®äžã«è¡šç€ºãããŸãã
ãã¡ã³ã·ãŒ TESTS
äžã§èª¬æããwã«å ããŠããã¹ãã§ããä»ã®å€æ°ããããããããŸãã
w-ææ¥
m-æ
d-æã®æ¥
y-幎
j-å€æŽããããŠãªãŠã¹æ¥çªå·
a-æã®æåã®1æ¥éã¯7ã次ã®2æ¥éã¯7ãªã©ã
b-ãã®æã®æåŸã®1æ¥éã¯7ãåã®2æ¥éã¯7ãªã©ã
c-æææ¥ãŸãã¯éææ¥ã¯ãæãè¿ãé±æ«ã®æ¥ã®æ¥ã«çãããªããŸãã ãã以å€ã®å Žåã¯-1
e-ä»å¹Žã®ïŒè¥¿éšïŒã€ãŒã¹ã¿ãŒãŸã§ã®æ¥æ°
z-幎ã®æ¥ïŒå æ¥ã¯1ïŒ
æã¯ãæ°åïŒm = 2ïŒãŸãã¯èšèªã®ååïŒm = febïŒãšããŠæå®ã§ããŸãã å
è«çæŒç®åïŒïŒããã³ïŒããã³|ã䜿çšããããšãã§ããŸãïŒãŸãïŒã 次ã®äŸã¯ããªãã«æãåºãããŸã
æ¯æXNUMXæ¥ãšXNUMXæ¥ã«åŸæ¥å¡ã«æ¯æããŸãã
d = 1 | d = 15ãåŸæ¥å¡ã«æ¯æããŸãã
ãã®äŸã§ã¯ãæ¯ææçµåææ¥ã«ãã³ãã§ãªããŒãµã«ããããšãæãåºãããŸãã
w = satïŒb = 1ããã³ãã§ãªããŒãµã«ã
次ã®XNUMXè¡
* 25æXNUMXæ¥ãã¯ãªã¹ãã¹
m = decïŒd = 25ãã¯ãªã¹ãã¹
ã©ã¡ãããŸã£ããåãããšãããŸãããæåã®ããŒãžã§ã³ã¯ç解ããããã
ããã°ã©ã ã¯ããéãå®è¡ãããŸãã ïŒãã¹ããè¡ããšãã æ¥æ ã§æ¯æ¥å®è¡ããå¿ èŠããããŸã
èŠæ±ããæ¥ä»ã®ç¯å²ãããã³ãããã®åæ¥ã®ãã¹ããè©äŸ¡ããŸãã ç§ã®ãã·ã³ã§ã¯ã
10åã®ç°¡åãªãã¹ããå«ããã¡ã€ã«ã䜿çšããŠXNUMX幎éã«ã¬ã³ããŒãå°å·ãããšã
æ°ç§ããããŸããïŒæ¬åŒ§ã䜿çšã§ããŸãã
åœç±ãå®æã«ããããŸãããããããããããã®äŒæ¥ããããŸãã
決ãŸã£ãæ¥ã«åãã€ããªãã§ãã ããã ããªã¹ãæã§ã¯ããããã®å€ãïŒã移åç¥æ¥ãïŒã¯
ã€ãŒã¹ã¿ãŒãµã³ããŒãåºæºã«ããŠèšç®ããããããeå€æ°ã圹ç«ã¡ãŸãã
notæŒç®åããããŸãïŒïŒ
w = friïŒïŒïŒm = decïŒd = 25ïŒãããŒã«ãŒã²ãŒã
ã¢ãžã¥ãæŒç®åïŒ ãšæžç®æŒç®å-ããããŸãã ãããã䜿çšããŠã
jå€æ°ãããã¯ã»ãšãã©äžå¯èœã§ã æ¥æ次ã®ããšãå®è¡ããããã®ã®å°ããªããŒãµãŒ
featïŒ
ïŒïŒjïŒ 14-1ïŒãéé±ã®æ°Žææ¥ã«äœããããŸã
ãã®ã°ãããå°ããªéæ³ã®èåŸã«ããè«çã¯æ¬¡ã®ããã«ãªããŸãã ãŸãã次ã®ããšã決å®ããŸãã
ã³ãã³ã `when j --now =" 2005 jan 26 "'ã䜿çšããŠãæåã®æ°Žææ¥ã«
ãããè¡ãã«ã¯ã1ãæ³ãšããŠ14ã«çãããŠãªãŠã¹æ¥ããããŸãã次ã«ããã®åŒã次ã®ããã«èšè¿°ããŸãã
ãŠãªãŠã¹æ¥ã1ãæ³ãšããŠ14ã«çããæ°Žææ¥ã®å Žåãæ¬åŒ§å ã®æ°é
ã¯ãŒãã«ãªãããã®è«çåŠå®ãåããšçã®å€ãåŸãããŸãã
æŒç®åã®çµåæ§ãšåªå é äœïŒæé«ããæäœãžïŒã¯æ¬¡ã®ããã«ãªããŸãã
å·Š ïŒ
å·Š -
å·Š<> <=> =
å·Š=ïŒ=
æ£ããïŒ
å·Š ïŒ
å·Š|
INCLUDING ãã¡ã€ã«
ã«ã¬ã³ããŒãã¡ã€ã«ã倧ãããªããããå Žåã¯ããããå°ããªãã£ã³ã¯ã«åå²ããããšããå§ãããŸã-
ããããèªçæ¥çšãããããã®äŒæ¥çšãªã©ã§ããç°¡åãªæ¹æ³ã§éæã§ããŸãã
ããã¯ãããã°ã©ã m4ãã€ã³ã¹ããŒã«ããè¡ã眮ãããšã§ã
ãã¬ãã£ã«ã¿ãŒ= m4 -P
èšå®ãã¡ã€ã«ã«å ¥åãã次ã®ããã«ã«ã¬ã³ããŒãã¡ã€ã«ã«è¡ãé 眮ããŸãã
m4_includeïŒ/home/yourname/.when/birthdaysïŒ
ENVIRONMENT
$ LANG ãŠãŒã¶ãŒã®èšèªãèªåçã«æ€åºããŸã
$ TERM ã¿ãŒããã«ãšãã¥ã¬ãŒã¿ãã¢ã¯ã»ã³ãä»ãæåã衚瀺ã§ãããã©ããã確èªãã
onworks.netãµãŒãã¹ã䜿çšããŠãªã³ã©ã€ã³ã§äœ¿çšãã