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

AprilFoolsDay

  • Predefined Variable (April 1)
    • new in 1.65

    • Example:

      if today is AprilFoolsDay as a date then
      put "Ha ha! April Fools Day was a year ago!"
      else if today comes before AprilFoolsDay as date then
      set daysToGo to (AprilFoolsDay - today)/1 day
      put "April Fool's Day is coming in " & daysToGo & " days"
      else
      set daysAgo to (today - AprilFoolsDay)/1 day
      put "April Fool's Day was " & daysAgo & " days ago"
      end if