This approach is fine provided the number of valid command line (long form) identifiers is small.
如果有效命令行(长形式)选项标识符的数量不大,这种方式很合适。
The best way to make sure that you supply a valid identifier is to enumerate the time zones available on your system and note the identifiers of the time zones present on them.
若要确保提供了有效的标识符,最好的方法是枚举系统上的可用时区,并记下表示每个时区的标识符。
应用推荐