6


Compare "{{CURRENTDOW|=}}" gives "Template:CURRENTDOW" [1]. This template returns 1 (Monday) up to 7 (Sunday) for an ISO 8601 day of the week. CURRENTDOW uses 0 for Sunday, apart from that the default result of MJD2DOW is identical to the result of CURRENTDOW.

The used formula does not depend on -5 mod 7 being -5 or 2, or -2.5 round 0 being -2 or -3.

{{subst:MJD2DOW|11111|subst=subst:}} gives the wikitext 5.

{{subst:MJD2DOW|subst=subst:}} gave at the time of saving the wikitext 3

  • "{{MJD2DOW|11111}}" gives "5" [2]
  • "{{MJD2DOW|(11111-77777777)}}" gives "5" [3]
  • "{{MJD2DOW|11111.3}}" gives "5" [4]
  • "{{MJD2DOW|11111.8}}" gives "5" [5]
  • "{{MJD2DOW|11111.3-77777777}}" gives "5" [6]
  • "{{MJD2DOW|11111.8-77777777}}" gives "5" [7]