c:\export\olenmr\client\forcheckjs.htm Functions

7/24/2003 7:53:09 AM

Full Project List

time.js Functions

function dateString(swhen)
function dd(d)
function fixDate(sdate)
function fixTime(stime)
function hm(m)
function hhmm(m)
function hhmmss(d)
function mmddyy(d)
function now()
function timeUntil(when)
function today()
function USDate(d)

   

file time.js  

view function dateString(swhen)

parameters:

string

swhen

function return:

return ""; return USDate(d)+"|"+(new Date(d))+"|"+n;

called by:

setup_setJobPriority

calls:

fixDate

fixTime

now

today

USDate

   

file time.js  

view function dd(d)
Gets day of the week from a date

parameters:

type?

d

function return:

return s.substring(s.length-2,s.length);

called by:

hhmmss

now

calls:

   

file time.js  

view function fixDate(sdate)

parameters:

string

sdate

function return:

return S[1]+"/"+S[2]+"/"+S[3];

called by:

dateString

calls:

mmddyy

today

   

file time.js  

view function fixTime(stime)

parameters:

string

stime

function return:

return ((parseInt(S[0])+addpm)%24)+":"+S[1];

called by:

dateString

calls:

   

file time.js  

view function hm(m)

parameters:

integer

m

function return:

return (h>0?h+" hr"+" ":"")+m+" min" ;

called by:

server_fakeCurrentState

calls:

   

file time.js  

view function hhmm(m)

parameters:

integer

m

function return:

return (h>0?h+" hour"+(h==1?"":"s")+" and ":"")+m+" minute"+(m==1?"":"s") ;

called by:

timeUntil

calls:

   

file time.js  

view function hhmmss(d)
Gives hours, minutes and seconds

parameters:

type?

d

function return:

return dd(d.getUTCHours())+":"+dd(d.getUTCMinutes())+":"+dd(d.getUTCSeconds());

called by:

doLog

calls:

dd

   

file time.js  

view function mmddyy(d)

parameters:

type?

d

function return:

return (d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear();

called by:

fixDate

today

calls:

   

file time.js  

view function now()

function return:

return d.getHours()+":"+dd(d.getMinutes());

called by:

dateString

calls:

dd

   

file time.js  

view function timeUntil(when)

parameters:

string

when

function return:

return hhmm(Math.floor(( (new Date(when))-(new Date()) ) /60000));

called by:

setup_setJobPriority

calls:

hhmm

   

file time.js  

view function today()

function return:

return mmddyy(new Date());

called by:

dateString

fixDate

calls:

mmddyy

   

file time.js  

view function USDate(d)

parameters:

type?

d

function return:

return S[pttime]+" "+S[0]+" "+S[1]+" "+S[2]+", "+d.getFullYear();

called by:

dateString

calls: