Auteur Sujet: Easter Sunday in 2024 is on ?  (Lu 5207 fois)

0 Membres et 1 Invité sur ce sujet

Hors ligne Arenas

  • Newbie
  • *
  • Messages: 17
  • Karma : 2
    • Voir le profil
    • http://arenas.pagesperso-orange.fr/GradientExample/france-countdown.html
Easter Sunday in 2024 is on ?
« le: janvier 24, 2024, 14:57:45 pm »
Easter Sunday in 2024 is on ?

Us PowerShell any version
@

=================

cls

$year = Get-Date -Format "yyyy"

$year = "$year"
$g = $year % 19
$s = [math]::Floor($year / 100)
$k = [math]::Floor(($s - 17) / 25)
$i = $s - [math]::Floor($s / 4) - [math]::Floor(($s - $k) / 3) + 19 * $g + 15
$i = $i - 30 * [math]::Floor($i / 30)
$i = $i - [math]::Floor($i / 28) * ([math]::Floor($g / 11) + 1) * ([math]::Floor((29 / ($i + 1))))
$j = $year + [math]::Floor($year / 4) + $i + 2 - $s + [math]::Floor($s / 4)
$j = $j - 7 * [math]::Floor($j / 7)
$l = $i - $j
$month = 3 + [math]::Floor(($l + 40) / 44)
$day = $l + 28 - 31 * [math]::Floor($month / 4)
""
Write-Host "Easter Sunday in $year is on is on $day-$month"

""
« Modifié: janvier 24, 2024, 15:03:34 pm par Arenas »

Hors ligne Klaatou

  • Administrator
  • Hero Member
  • *****
  • Messages: 1 537
  • Karma : 33
  • Sexe: Homme
    • Voir le profil
    • InterPlanete
Re : Easter Sunday in 2024 is on ?
« Réponse #1 le: mars 01, 2024, 09:45:11 am »
"is on is on" ;) mais ça marche
Klaatu barada nikto !