Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - mtoc() return time corresponding to number of minutes http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mtoc()              Return time corresponding to number of minutes
------------------------------------------------------------------------------
 Declaration
   string.hdr

 Syntax
   func char(5) mtoc extern
   param value uint nMins

 Arguments
   nMins is the number of minutes since midnight.

 Return
   A time string consisting of hours and minutes, corresponding to the
   passed number of minutes.

 Description
   The mtoc() function returns a time string corresponding to the number
   of minutes elapsed since midnight, passed as parameter.

 Example
   #define EXAMPLE_STRING
   #include example.hdr

   proc Test_mtoc
   vardef
      ulong nMins
   enddef
   nMins := seconds() / 60       // get minutes elapsed since midnight
   ? mtoc( nMins )               // convert to time string
   endproc

   proc main
   Test_mtoc()
   endproc

See Also: ctom()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson