ÿþ 
 / *  
 C r e a t e d   b y :   J a n   K a r l o v s k y  
 V e r s i o n :   0 . 6  
 S o u r c e   j d :   h t t p : / / w w w m a c h o . m c m a s t e r . c a / J A V A / J D . h t m l  
 * /  
 f u n c t i o n   f i x ( n u m )   {  
     i f   ( n u m   <   1 0 )   {   r e t u r n   ' 0 '   +   n u m ;   }  
     e l s e   {   r e t u r n   n u m   }  
 }  
  
 f u n c t i o n   g e t a l l ( )   {  
 d a t u m   =   n e w   D a t e ( ) ;  
 m   =   d a t u m . g e t U T C M o n t h ( )   +   1 ;  
 d   =   d a t u m . g e t U T C D a t e ( ) ;  
 y   =   d a t u m . g e t U T C F u l l Y e a r ( ) ;  
 h   =   d a t u m . g e t U T C H o u r s ( ) ;  
 m i n   =   d a t u m . g e t U T C M i n u t e s ( ) ;  
 s c   =   d a t u m . g e t U T C S e c o n d s ( ) ;  
  
  
  
  
  
  
 v a r   e x t r a   =   1 0 0 . 0 * y   +   m   -   1 9 0 0 0 2 . 5  
       v a r   j d   =   3 6 7 . 0 * y  
       j d   - =   M a t h . f l o o r ( 7 . 0 * ( y + M a t h . f l o o r ( ( m + 9 . 0 ) / 1 2 . 0 ) ) / 4 . 0 )  
       j d   + =   M a t h . f l o o r ( 2 7 5 . 0 * m / 9 . 0 )    
       j d   + =   d  
       j d   + =   ( h   +   ( m i n   +   s c / 6 0 . 0 ) / 6 0 . ) / 2 4 . 0  
       j d   + =   1 7 2 1 0 1 3 . 5  
       j d   - =   0 . 5 * e x t r a / M a t h . a b s ( e x t r a )  
       j d   + =   0 . 5  
  
  
  
 m j d   =   j d   -   2 4 0 0 0 0 0 . 5 ;  
            
  
  
 / *  
 d o c u m e n t . w r i t e ( " D a t u m : " + d + " . " + m + " . " + y ) ;  
 d o c u m e n t . w r i t e ( "   J D : " + j d ) ;  
 d o c u m e n t . w r i t e ( "   C a s :   " + h + " : " + m i n + " : " + s c ) ;  
 d o c u m e n t . w r i t e ( "   M J D : " + m j d ) ;  
 * /  
  
  
 a l l =   " D á t u m :   " + f i x ( d ) + " . " + f i x ( m ) + " . " + y + " & n b s p & n b s p & n b s p & n b s p & n b s p & n b s p   U T C   a s :   " + f i x ( h ) + " : " + f i x ( m i n ) + " : " + f i x ( s c ) + " & n b s p & n b s p & n b s p & n b s p & n b s p & n b s p   J u l i á n s k y   d á t u m   ( J D ) :   " + j d ;  
  
  
 w i n d o w . d o c u m e n t . g e t E l e m e n t B y I d ( " d a t u m _ b a n " ) . i n n e r H T M L = a l l ;  
 }  
 g e t a l l ( ) ;  
 w i n d o w . s e t I n t e r v a l ( " g e t a l l ( ) " , 1 0 0 0 ) ;  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 
