Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Bitbull
Datagrip Net
Buddy Saver
Object Serializer
3 State Button
Import Linked Bitmaps
ShapeWindow Xtra
Image Magnify
Open MIAW
Pulser
MediaMacros Xtras Mall
 

 

 

Behavior getSystemTime

Added on 5/14/2002

 

Compatibilities:
D8 D8_5 Script Shockwave

This item has not yet been rated

Author: mango

Returns hours or minutes or seconds or all together

--usage getSystemTime
--returns a string with one of... full time or hours or minutes or seconds

--getSystemTime(request)
--request, required. Must be a symbol. Valid requests are:
--#all... returns full time in format "hh:mm:ss"
--#h... returns zeropadded string with hours
--#m... returns zeropadded string with minutes
--#s... returns zeropadded string with seconds

--errorcodes
-- -1 = request is not of type symbol
-- -2 = request value is other than valid. see usage

--example:
--put getSystemTime(#all)
-- "00:20:14"
--put getSystemTime(#m)
-- "20"

on getSystemTime request
  if symbolP(request) = 1 then
    tTime = [:]
    t = framestoHMS(the systemdate.seconds,1,0,0).char[2..9]
    tTime.addProp(#all, t)
    tTime.addProp(#h, t.char[1..2])
    tTime.addProp(#m, t.char[4..5])
    tTime.addProp(#s, t.char[7..8])
    if voidp(tTime[request]) then return -2
    return tTime[request]
  else
    return -1
  end if
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail