メインコンテンツまでスキップ
バージョン:25.2

defaultCenturyCutoff

  • global property
  • The centuryCutoff local property (and its global counterpart the defaultCenturyCutoff) control how to interpret the year, when converting text strings that use 2-digit years to a date. When a two-digit year is encountered, it is assumed to be in the present year or a future year up through the year indicated by the centuryCutoff. Otherwise, a two-digit year that is greater than the centuryCutoff is taken to be in the past (either earlier in the present century or in the previous century). By default the centuryCutoff is set to be 10 years in the future (so in 2008, a two-digit year will be assumed to represent a year between 1919 and 2018). Set the centuryCutoff to -1 to turn this functionality off (to allow two-digit years to represent years in the first century CE).
  • Related: centuryCutoff