Announcement

Collapse
No announcement yet.

sys_GetTimeVar

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

  • sys_GetTimeVar

    Hi again....

    I´m trying to use this functions: sys_GetTimeVar(), and sys_GetDateVar()

    sys_GetTimeVar( &clock_h, &clock_m, &clock_s, &clock_ms );

    The command is not coloured, and the compiler gives me an error: Error: 'sys_GetTimeVar' not found
    In the example at "Diablo16 internal functions R1.7" you write Sys_GetTimeVar(), with the first letter capitalized, but aslo doesn´t work.

    I´m using Workshop vers 4.1.0.36 and targeting to an uLCD-35DT display.

    Thank you advanced !

  • #2
    Very sorry, if you look at the Revision history you will see those commands are new in PmmC 1.3 and 1.3 hasn't been released yet

    You will have to wait a while.
    Mark

    Comment


    • #3
      Thanks !, No problem.

      Comment


      • #4
        I am using 4.5.0.17 and the function Sys_GetTimeVar is still no working

        Comment


        • #5
          Hi,

          Can you give us details on how did you use the function sys_GetTimeVar() on your code?

          BR,
          Ferdinand

          Comment


          • #6
            var buf[5];
            to(buf);

            Sys_GetTime(); // Print the current Time to the buffer


            print ( buf(0));

            Sys_GetTimeVar (hour, minute, second, msecs ); // Get the current Time into variables

            print ( " Hour: ", hour);
            print ( " Minute: ", minute);
            print ( " Second: ", second);
            print ( " msec: " , msecs );


            Above generates:

            Error: 'Sys_GetTime' not found (line 1078 file:harlequin.4dg)
            Error: context error for unknown 'Sys_GetTime' (line 1078 file:harlequin.4dg)
            Error: 'Sys_GetTimeVAR' not found (line 1083 file:harlequin.4dg)
            Error: context error for unknown 'Sys_GetTimeVar' (line 1083 file:harlequin.4dg)
            4 errors


            Comment


            • #7
              Hi,

              Good day.

              Replace S with lower case s to be sys_GetTime() and sys_GetTimeVar().

              Hope this helps.

              BR,
              Ferdinand

              Comment

              Working...
              X