Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

perl + datumsberechnung

Empfohlene Antworten

Veröffentlicht

hi leute,

kennt ihr vielleicht nen perl-modul oder eine einfache methode um daten zurück zu rechnen??

ich kriege zwar das aktuelle datum durch "localtime(time)" heraus, aber ich brauche z.B. das datum von heute, gestern und vorgestern.. da kann ich ja schlecht einfach mal einen tag abziehen ;) und nu? komm hier irgendwie nicht weiter.. bin für jede hilfe dankbar!

gruß

attheo

also hier die lösung, falls mal einer das gleiche problem hat, hab ich ne kleine funktion dazu geschrieben:


sub GetDays {

    my ($days) = @_; ### Übergabe: Anzahl der Tage

    my $sec  = time;

    for ($i=0; $i<$days; $i++){

        $sec = $sec-86400; ### 86400 Sekunden hat ein Tag

        $date=&Format_Day($sec); ### Format_Day() formatiert nur die Sekunden in das Format 00.00.0000 (s. [URL=http://selfhtml.teamone.de/cgiperl/funktionen/datumzeit.htm]selfhtml[/URL] )

        push (@dates, $date);

    }

    return (@dates);

}

Gruß

attheo

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.