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.

mktime()

Empfohlene Antworten

Veröffentlicht

Hi,

ich hab da eine kleine Frage.

ich brauche den vorhergehenden Monat, es sieht dann etwa so aus:

$dat = mktime(0,0,0,$monat-1,"01",date("Y"));

Nun die Frage:

Wenn $monat gleich 01 ist, ist dann das Ergebnis 01.12 des Vorjahres oder des aktuellen Jahres?

Es entspricht dann etwa dem:

$dat = mktime(0,0,0,0,"01",date("Y"));

Oder kommt da eine Fehlermeldung? :rolleyes:

Danke

wenn du einfach nur den vorhergehenden Monat brauchst schau doch mal hier:

Manual

gruß

mktime(0,0,0,0,1,2002) ist der 1.12.2001.

Hi,

ich versteh nicht wieso man so eine Frage hier stellen muß?

Einfach im Script die Funktion mal aufrufen und dann sieht man ja was passiert!

Bis denn...:marine

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.