control: tag -1 + patch fixed pending Thanks for your bugreport and patch.
The patch is no problem. I use this patch build the new version: Lunar Version 2.2-9 (Debian) (Dec 16, 2020) 在 2020/12/15 上午9:11, luckystar 写道: > Package: lunar > Version: 2.2-8 > Severity: normal > > > Hi, > The attachment is a substitute of 22_patch within lunar_2.2-8 > for the following bugs: > > *** bugs_testing_scripts-with_results.txt > Here is some simple bash-scripts for testing with results: I use the new verison Lunar Version 2.2-9 (Debian) (Dec 16, 2020) to verify next: > > 1. different datetime when query luan to/from solar: > diff <(lunar=./usr/bin/lunar; y=1908; m=2; d=3; i=''; for h in `seq 0 72`; do > let dd=$d+$[h/24]; h=$[h%24]; $lunar -u -s $i $y $m $dd $h | sed -n > '3{N;s/\n/ \| /p}'; done) <(lunar=./usr/bin/lunar; y=1908; m=1; d=2; i='-i'; > for h in `seq 0 72`; do let dd=$d+$[h/24]; h=$[h%24]; $lunar -u -s $i $y $m > $dd $h | sed -n '3{N;s/\n/ \| /p}'; done) There is no different now. > 2. "jie_alarm" at 0 - 23 o'clock, correct one is at 23 - 22 > (lunar=./usr/bin/lunar; y=1908; m=2; d=4; i=''; for h in 22 23 24 47; do let > dd=$d+$[h/24]; h=$[h%24]; $lunar -u -s $i $y $m $dd $h; done) > 阳历: 1908年 2月 4日23时 星期二 > 阴历: 1908年 1月 4日子时 生肖属猴 > 干支: 戊申年 甲寅月 庚寅日 丙子时 > 用四柱神算推算之时辰八字: 丁未年 癸丑月 庚寅日 丙子时 > Lunar Version 2.2-8 (Debian) (May 16, 2020) lunar 1908 02 04 23 Lunar Version 2.2-9 (Debian) (Dec 16, 2020) 阳历: 1908年 2月 4日23时 星期二 阴历: 1908年 1月 4日子时 生肖属猴 干支: 戊申年 甲寅月 庚寅日 丙子时 用四柱神算推算之时辰八字: 戊申年 甲寅月 庚寅日 丙子时 * 是日为节, 月柱可能要修改 * 年柱亦可能要修改 * 请查有节气时间之万年历 "jie_alarm" begin at 23o'clock. > > 3. for en, lunar using "big hour", e.g: zi3...etc. since "big hour" never > bigger then 12: > > ./usr/bin/lunar > > Lunar Version 2.2-8 (Debian) (May 16, 2020) > > Solar : 2020.12.13.16 Sunday > Lunar : 2020.10.29.16 ShengXiao: Mouse > GanZhi: Geng1-Zi3.Ding1-Hai4.Geng1-Yin2.Jia3-Shen1 > (GanZhi Order) 7-1.4-12.7-3.1-9 > (JiaZi Cycle) 37.24.27.21 > > BaZi (8-characters) according to 'Four Column Calculation': > Geng1-Zi3.Wu4-Zi3.Geng1-Yin2.Jia3-Shen1 > (GanZhi Order) 7-1.5-1.7-3.1-9 > (JiaZi Cycle) 37.25.27.21 export LANG=C ;lunar Lunar Version 2.2-9 (Debian) (Dec 16, 2020) Solar : 2020.12.16.12 Wednesday Lunar : 2020.11.2.Wu3 ShengXiao: Mouse GanZhi: Geng1-Zi3.Wu4-Zi3.Gui3-Si4.Wu4-Wu3 (GanZhi Order) 7-1.5-1.10-6.5-7 (JiaZi Cycle) 37.25.30.55 BaZi (8-characters) according to 'Four Column Calculation': Geng1-Zi3.Wu4-Zi3.Gui3-Si4.Wu4-Wu3 (GanZhi Order) 7-1.5-1.10-6.5-7 (JiaZi Cycle) 37.25.30.55 Lunar output the "big hour" Wu3 now. BTW:If use LANG=zh_CN.UTF-8 in old version 2.2-8, the Chinese output hour is correct. This question only occur in "LANG=C" env. > 4 datetime-go-back testing with results: > 4.1 solar to lunar, correct: > (lunar=./usr/bin/lunar; y=1908; m=2; d=3; i=''; for h in `seq 0 72`; do let > dd=$d+$[h/24]; h=$[h%24]; $lunar -u -s $i $y $m $dd $h | sed -n '3{N;s/\n/ \| > /p}'; done) > > > 4.2 lunar to solar, incorrect: > (lunar=./usr/bin/lunar; y=1908; m=2; d=3; i='-i'; for h in `seq 0 72`; do > let dd=$d+$[h/24]; h=$[h%24]; $lunar -u -s $i $y $m $dd $h | sed -n > '3{N;s/\n/ \| /p}'; done) (lunar=./usr/bin/lunar; y=2020; m=11; d=02; i='-i'; for h in `seq 0 72`; do let dd=$d+$[h/24]; h=$[h%24]; $lunar -u -s $i $y $m $dd $h | sed -n '3{N;s/\n/ \| /p}'; done) 阳历: 2020年12月16日 0时 星期三 | 阴历: 2020年11月 2日子时 生肖属鼠 阳历: 2020年12月16日 1时 星期三 | 阴历: 2020年11月 2日丑时 生肖属鼠 阳历: 2020年12月16日 2时 星期三 | 阴历: 2020年11月 2日丑时 生肖属鼠 阳历: 2020年12月16日 3时 星期三 | 阴历: 2020年11月 2日寅时 生肖属鼠 阳历: 2020年12月16日 4时 星期三 | 阴历: 2020年11月 2日寅时 生肖属鼠 阳历: 2020年12月16日 5时 星期三 | 阴历: 2020年11月 2日卯时 生肖属鼠 阳历: 2020年12月16日 6时 星期三 | 阴历: 2020年11月 2日卯时 生肖属鼠 阳历: 2020年12月16日 7时 星期三 | 阴历: 2020年11月 2日辰时 生肖属鼠 阳历: 2020年12月16日 8时 星期三 | 阴历: 2020年11月 2日辰时 生肖属鼠 阳历: 2020年12月16日 9时 星期三 | 阴历: 2020年11月 2日巳时 生肖属鼠 阳历: 2020年12月16日10时 星期三 | 阴历: 2020年11月 2日巳时 生肖属鼠 阳历: 2020年12月16日11时 星期三 | 阴历: 2020年11月 2日午时 生肖属鼠 阳历: 2020年12月16日12时 星期三 | 阴历: 2020年11月 2日午时 生肖属鼠 阳历: 2020年12月16日13时 星期三 | 阴历: 2020年11月 2日未时 生肖属鼠 阳历: 2020年12月16日14时 星期三 | 阴历: 2020年11月 2日未时 生肖属鼠 阳历: 2020年12月16日15时 星期三 | 阴历: 2020年11月 2日申时 生肖属鼠 阳历: 2020年12月16日16时 星期三 | 阴历: 2020年11月 2日申时 生肖属鼠 阳历: 2020年12月16日17时 星期三 | 阴历: 2020年11月 2日酉时 生肖属鼠 阳历: 2020年12月16日18时 星期三 | 阴历: 2020年11月 2日酉时 生肖属鼠 阳历: 2020年12月16日19时 星期三 | 阴历: 2020年11月 2日戌时 生肖属鼠 阳历: 2020年12月16日20时 星期三 | 阴历: 2020年11月 2日戌时 生肖属鼠 阳历: 2020年12月16日21时 星期三 | 阴历: 2020年11月 2日亥时 生肖属鼠 阳历: 2020年12月16日22时 星期三 | 阴历: 2020年11月 2日亥时 生肖属鼠 阳历: 2020年12月16日23时 星期三 | 阴历: 2020年11月 3日子时 生肖属鼠 阳历: 2020年12月17日 0时 星期四 | 阴历: 2020年11月 3日子时 生肖属鼠 阳历: 2020年12月17日 1时 星期四 | 阴历: 2020年11月 3日丑时 生肖属鼠 阳历: 2020年12月17日 2时 星期四 | 阴历: 2020年11月 3日丑时 生肖属鼠 [...] There is no datetime-go-back now. Thanks you again for contribution to Debian! -- 肖盛文 xiao sheng wen Faris Xiao 微信(wechat):atzlinux 《铜豌豆 Linux》 基于 Debian 的 Linux 中文桌面操作系统:https://www.atzlinux.com Debian QA page: https://qa.debian.org/developer.php?login=atzlinux%40sina.com GnuPG Public Key: 0x339240CB