仅在日历上显示特定日期
Show only specific days on calendar
我想知道是否可以在日历中仅显示特定日期。我的意思是,例如,我知道我可以使用以下方法创建一个带有日历的对话框:
对话--标题"Test"--日历"Date:" 0 0
并且它显示特定月份的每一天等等。
但我想知道是否可以在同一个对话框中只显示5、10、15、20、25、30之类的日子,但我不知道该怎么做,也不知道是否可以使用该对话框选项以这种方式完成。
dialog
没有按照要求执行。提供源代码;你可以修改它。
文档说
--calendar
text height width day month year
A calendar box displays month, day and year in separately adjustable windows. If the values for day, month or year are
missing or negative, the current date's corresponding values are
used. You can increment or decrement any of those using the
left-, up-, right-, and down-arrows. Use vi-style h
, j
, k
and l
for moving around the array of days in a month. Use tab or
backtab to move between windows. If the year is given as zero,
the current date is used as an initial value.
退出时,日期以 day/month/year 的形式打印。这
可以使用 --date-format
选项覆盖格式。
和
--date-format
format
If the host provides strftime
, this option allows you to specify
the format of the date printed for the --calendar
widget. The
time of day (hour, minute, second) are the current local time.
虽然 --calendar 描述指的是 array 天,并且 可单独调整 windows,但它不会详细说明 月、日 和 年 的 windows 是用于更新 数组 ,并且小部件显示每个月的所有天数。
--date-format
选项用于改变结果报告给shell的方式,对月份的方式没有影响显示在屏幕上。
我想知道是否可以在日历中仅显示特定日期。我的意思是,例如,我知道我可以使用以下方法创建一个带有日历的对话框:
对话--标题"Test"--日历"Date:" 0 0
并且它显示特定月份的每一天等等。
但我想知道是否可以在同一个对话框中只显示5、10、15、20、25、30之类的日子,但我不知道该怎么做,也不知道是否可以使用该对话框选项以这种方式完成。
dialog
没有按照要求执行。提供源代码;你可以修改它。
文档说
--calendar
text height width day month year
A calendar box displays month, day and year in separately adjustable windows. If the values for day, month or year are missing or negative, the current date's corresponding values are used. You can increment or decrement any of those using the left-, up-, right-, and down-arrows. Use vi-styleh
,j
,k
andl
for moving around the array of days in a month. Use tab or backtab to move between windows. If the year is given as zero, the current date is used as an initial value.
退出时,日期以 day/month/year 的形式打印。这
可以使用 --date-format
选项覆盖格式。
和
--date-format
format
If the host providesstrftime
, this option allows you to specify the format of the date printed for the--calendar
widget. The time of day (hour, minute, second) are the current local time.
虽然 --calendar 描述指的是 array 天,并且 可单独调整 windows,但它不会详细说明 月、日 和 年 的 windows 是用于更新 数组 ,并且小部件显示每个月的所有天数。
--date-format
选项用于改变结果报告给shell的方式,对月份的方式没有影响显示在屏幕上。