Zahlen in Zeit umwandeln

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    $Std4 = floor(($timestamp2-$timestamp1)/60/60);

    Damit habe ich nur ganze Zahlen erreicht
    LG, m-werk

    Comment


    • #32
      super, dann enthält $Std4 doch genau die anzahl der stunden!

      d.h. du bist kurz davor zu schreiben:

      PHP Code:
      echo 'die differenz beträgt ' $Std4 ':' $min
      und auf $min kommst du mittels modulo-operators.

      Comment


      • #33
        Mittels modulo-operator??

        Wie mache ich nun das?
        LG, m-werk

        Comment


        • #34
          such doch bitte erstmal, bevor du fragst.

          Comment


          • #35
            weißt du, was das ist?

            Comment


            • #36
              Nein leider
              LG, m-werk

              Comment


              • #37
                und weder google noch wikipedia können dir dabei helfen, es herauszufinden?

                Comment


                • #38
                  % == modulo

                  Gruss

                  tobi
                  Gutes Tutorial | PHP Manual | MySql Manual | PHP FAQ | Apache | Suchfunktion für eigene Seiten

                  [color=red]"An error does not become truth by reason of multiplied propagation, nor does truth become error because nobody sees it."[/color]
                  Mohandas Karamchand Gandhi (Mahatma Gandhi) (Source)

                  Comment

                  Working...
                  X