HISE Logo Forum
    • Categories
    • Register
    • Login

    UNIX date/time into HISE.....

    Scheduled Pinned Locked Moved General Questions
    7 Posts 4 Posters 201 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LindonL
      Lindon
      last edited by

      So I have a UNiX date in hise in this sort of format:

      date="18c1054942c"

      ..anyone have any idea how I can get this into a date in HISE, it will probably end up as some sort of milisecond count - so it should be just a very large number...

      HISE Development for hire.
      www.channelrobot.com

      LindonL 1 Reply Last reply Reply Quote 0
      • LindonL
        Lindon @Lindon
        last edited by

        @Lindon the forum gods strike again, as soon as I post..this

        var secs = "0x" + "18c1054942c";
        Console.print(parseInt(secs,10));
        

        HISE Development for hire.
        www.channelrobot.com

        1 Reply Last reply Reply Quote 0
        • d.healeyD
          d.healey
          last edited by

          There is actually a date time class in HISE script (Greg added it if I remember correctly) and it seems to be totally undocumented except for some forum posts.

          Link Preview Image
          HISE/hi_scripting/scripting/api/ScriptingApi.cpp at develop · christophhart/HISE

          The open source framework for sample based instruments - HISE/hi_scripting/scripting/api/ScriptingApi.cpp at develop · christophhart/HISE

          favicon

          GitHub (github.com)

          Libre Wave - Freedom respecting instruments and effects
          My Patreon - HISE tutorials
          YouTube Channel - Public HISE tutorials

          ustkU 1 Reply Last reply Reply Quote 0
          • ustkU
            ustk @d.healey
            last edited by

            @d-healey @Lindon yeah I added this a while ago, I'm surprised it's not documented 🤔

            Here's a thread with some examples:
            https://forum.hise.audio/topic/4692/days-since/12

            Can't help pressing F5 in the forum...

            Christoph HartC 1 Reply Last reply Reply Quote 0
            • Christoph HartC
              Christoph Hart @ustk
              last edited by

              @ustk if you‘ve been a good boy and have documented each method with a comment, it might just not be picked up by the doc generator (I have to manually add each class so it might just got lost at this step). I‘ll take a look…

              ustkU 1 Reply Last reply Reply Quote 1
              • ustkU
                ustk @Christoph Hart
                last edited by

                @Christoph-Hart Yeah I always comment using the same paradigm but it might be the Date class itself that is not caught by the generator if I missed something...

                Can't help pressing F5 in the forum...

                Christoph HartC 1 Reply Last reply Reply Quote 0
                • Christoph HartC
                  Christoph Hart @ustk
                  last edited by

                  @ustk yupp that was the case, now it should pop up (in the new_dispatcher branch)

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

                  49

                  Online

                  1.7k

                  Users

                  11.7k

                  Topics

                  101.8k

                  Posts