Variable Time Control

version 3 by Eric Eve

  • Home page
  • Beginning
  • Previous



  • Chapter 4 - Displaying Time with Seconds

    [ This can be used to display the time of day in the format hh:mm:ss am/pm ]

    To say sec-time:
    let sec_tim be an indexed text;
    let sec_tim be "[time of day]";
    let x be word number 2 in sec_tim;
    if seconds > 9, let x be "[x]:[seconds]";
    otherwise let x be "[x]:0[seconds]";
    replace word number 2 in sec_tim with x;
    say "[sec_tim]";


    Variable Time Control ends here.