Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. Tage zum Datum addieren. [gelöst]

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Tage zum Datum addieren. [gelöst]

    This topic has been deleted. Only users with topic management privileges can see it.
    • andiko2
      andiko2 last edited by

      Das hatte ich übersehen. Habe ich geändert bekomme aber trotzdem Error.
      versuch3.PNG
      versuch4.PNG

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @andiko2 last edited by paul53

        @andiko2
        Der Datenpunkt "Restlaufzeit" liefert offenbar den Wert null (hat noch keinen Wert). Sollte das nicht der Datenpunkt sein, der anstelle von "debug output" das Ergebnis enthält (würde ich dem Namen nach vermuten). In die Variable end muss das "Enddatum" im Format "TT.MM.JJJJ" eingelesen werden.

        1 Reply Last reply Reply Quote 1
        • andiko2
          andiko2 last edited by

          Im Datenpunkt Restlaufzeit sollten die restlichen Tage bis zum Zieldatum stehen.

          paul53 1 Reply Last reply Reply Quote 0
          • paul53
            paul53 @andiko2 last edited by

            @andiko2 sagte:

            Im Datenpunkt Restlaufzeit sollten die restlichen Tage bis zum Zieldatum stehen.

            Also das Ergebnis der Berechnung, nicht das Enddatum.

            1 Reply Last reply Reply Quote 1
            • andiko2
              andiko2 last edited by andiko2

              genau wenn das zieldatum der 15.11.2019 ist, und heute der 09.11.2019 dann sollte da 6 tage stehen.
              versuch 5.PNG

              paul53 1 Reply Last reply Reply Quote 0
              • paul53
                paul53 @andiko2 last edited by

                @andiko2

                Blockly_temp.JPG

                1 Reply Last reply Reply Quote 1
                • andiko2
                  andiko2 last edited by

                  ok ich versuche es.Aber erstmal ein Danke für die Hilfe.

                  1 Reply Last reply Reply Quote 0
                  • andiko2
                    andiko2 last edited by andiko2

                    Wir kommen der Sache schon näher. Aktuelles Datum ist 09.11.2019 und steht so im Datenpunkt. Zieldatum ist zum testen 10.11.2019 und steht auch so im Datenpunkt. Restlaufzeit müsste demnach 1 sein. Ergebnis ist aber -29.
                    v2.PNG
                    v1.PNG
                    ahhhh fehler endeckt. Muss noch mal korregieren.

                    1 Reply Last reply Reply Quote 0
                    • andiko2
                      andiko2 last edited by andiko2

                      ich bekomme diesen Block nicht.
                      v3.PNG
                      wi erstelle ich den? Gestern hatte ich den hinbekommen.
                      v4.PNG

                      1 Reply Last reply Reply Quote 0
                      • andiko2
                        andiko2 last edited by

                        So jetzt hab ich es und es funktioniert. Jetzt bin ich happy. Ein ganz dickes Dankeschön an dich.
                        v5.PNG

                        paul53 1 Reply Last reply Reply Quote 0
                        • paul53
                          paul53 @andiko2 last edited by

                          @andiko2 sagte:

                          es funktioniert

                          Dann markiere bitte das Thema in der Überschrift als [gelöst].

                          1 Reply Last reply Reply Quote 1
                          • First post
                            Last post

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          387
                          Online

                          31.9k
                          Users

                          80.3k
                          Topics

                          1.3m
                          Posts

                          2
                          17
                          1954
                          Loading More Posts
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes
                          Reply
                          • Reply as topic
                          Log in to reply
                          Community
                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                          The ioBroker Community 2014-2023
                          logo