x m l t v _ t i m e _ m o d i f y   v .   1 . 0 . 7 6 0 0 . 1 8 7 3 0   -   a   t o o l   f o r   m o d i f y i n g   X M L T V   t i m i n g s   b y   H r i s t o   G e n e v 
 
 
 
 A r g u m e n t s : 
 
 
 
     / h                             D i s p l a y   h e l p . 
 
     / i n                           P r o v i d e   t h e   p a t h   t o   t h e   i n p u t   X M L T V   f i l e .   D e f a u l t s   t o   e p g . x m l 
 
     / o u t                         P r o v i d e   t h e   p a t h   t o   t h e   o u t p u t   X M L T V   f i l e   w h e r e   a l l   c h a n g e s   w i l l   b e   s a v e d . 
 
                                     D e f a u l t s   t o   e p g _ c o r r e c t e d . x m l 
 
     / c o r r e c t i o n           S p e c i f y   t h e   c o r r e c t i o n   t o   b e   a p p l i e d   g l o b a l l y   t o   a l l   c h a n n e l s . 
 
                                     D e f a u l t   i s   l o c a l ,   w h i c h   a u t o m a t i c a l l y   c o n v e r t s   t h e   t i m i n g s   t o   u s e r   c u r r e n t   t i m e z o n e . 
 
                                     O t h e r   a c c e p t a b l e   v a l u e s : 
 
                                     / c o r r e c t i o n : l o c a l   -   c o n v e r t   t o   u s e r   l o c a l   t i m e 
 
                                     / c o r r e c t i o n : u t c   -   c o n v e r t   t o   U T C 
 
                                     / c o r r e c t i o n : + 1   -   a d d s   1   h o u r 
 
                                     / c o r r e c t i o n : - 1 , 5   ( o r   - 1 . 5 )   -   s u b t r a c t s   1   a n d   a   h a l f   h o u r s 
 
                                     / c o r r e c t i o n : + 0 2 : 1 5   -   a d d s   2   h o u r s   a n d   1 5   m i n u t e s 
 
                                     / c o r r e c t i o n : - 0 5 : 3 0   -   s u b t r a c t s   5   h o u r s   a n d   3 0   m i n u t e s 
 
     / c h a n n e l s               P r o v i d e   a   l i s t   o f   c h a n n e l s   t o   b e   c o r r e c t e d   o r   a   p a t h   t o   a   f i l e   c o n t a i n i n g 
 
                                     t h e   l i s t   o f   c h a n n e l s   a n d   t h e i r   c o r r e c t i o n   v a l u e s .   A c c e p t a b l e   v a l u e s   a r e :   
 
                                     / c h a n n e l s : a l l   -   a p p l i e s   t h e   c o r r e c t i o n   t o   a l l   c h a n n e l s .   T h i s   i s   t h e   d e f a u l t . 
 
                                     / c h a n n e l s : " C h a n n e l 1 I D ,   C h a n n e l 2 I D ,   C h a n n e l   3   I D "   -   a p p l i e s   t h e   c o r r e c t i o n   t o   t h e   g i v e n   c h a n n e l   i d s . 
 
                                     / c h a n n e l s : C : \ E P G \ c h a n n e l s _ a n d _ c o r r e c t i o n s . i n i   -   r e a d s   t h e   c h a n n e l s   a n d   t i m e   c o r r e c t i o n s   f r o m   a   f i l e . 
 
                                     T h e   f i l e   c h a n n e l s _ a n d _ c o r r e c t i o n s . i n i   s h o u l d   c o n t a i n   t h e   c h a n n e l   i d s   a n d   t h e i r   c o r r e c t i o n   v a l u e s 
 
                                     s e p a r a t e d   b y   " = " .   P r e p e n d i n g   #   t o   t h e   c h a n n e l   n a m e   d i s a b l e s   t h e   c h a n n e l   c o r r e c t i o n . 
 
                                     E x a m p l e   f i l e   c o n t e n t : 
 
                                     C h a n n e l 1 I d = + 1 
 
                                     C h a n n e l 2 I d = + 0 2 : 4 5 
 
                                     C h a n n e l   3   I d = - 1 , 5 
 
                                     # C h a n n e l 4 I d = - 0 1 : 1 0   # w i l l   b e   s k i p p e d 
 
     / r o                           R e m o v e s   t h e   o f f s e t .   F o r   i n s t a n c e   " 2 0 2 0 0 9 2 4 0 6 1 0 0 0   + 0 0 0 0 "   b e c o m e s   " 2 0 2 0 0 9 2 4 0 6 1 0 0 0 " . 
 
                                     D e f a u l t   i s   f a l s e .   I f   t h e   i n p u t   d a t e t i m e   s t r i n g   h a s   n o   o f f s e t ,   i t   w i l l   b e   a p p e n d e d . 
 
 
 
 E x a m p l e   u s a g e   ( f o r   q u e s t i o n s   f e e l   f r e e   t o   c o n t a c t   h r i s t o [ d o t ] g e n e v @ g m a i l [ d o t ] c o m ) : 
 
 R u n n i n g   w i t h o u t   p r o v i d e d   a r g u m e n t s   i s   e q u i v a l e n t   t o : 
 
 x m l t v _ t i m e _ m o d i f y . e x e   / i n : e p g . x m l   / o u t : e p g _ c o r r e c t e d . x m l   / c h a n n e l s : a l l   / c o r r e c t i o n : l o c a l 
 
 
 
 U s e   n o n e - d e f a u l t   i n p u t   a n d   o u t p u t   X M L   f i l e s : 
 
 x m l t v _ t i m e _ m o d i f y   / i n : g u i d e . x m l   / o u t : g u i d e _ f i x e d . x m l 
 
 
 
 A p p l y   g l o b a l   c o r r e c t i o n   o f   + 1   h o u r s   t o   a l l   c h a n n e l s : 
 
 x m l t v _ t i m e _ m o d i f y   / c o r r e c t i o n : + 1 
 
 
 
 A p p l y   g l o b a l   c o r r e c t i o n   t o   U T C   t o   a l l   c h a n n e l s : 
 
 x m l t v _ t i m e _ m o d i f y   / c o r r e c t i o n : u t c 
 
 
 
 S u b t r a c k   5   h o u r s   a n d   1 5   m i n u t e s   f r o m   a l l   c h a n n e l s : 
 
 x m l t v _ t i m e _ m o d i f y   / c o r r e c t i o n : - 0 5 : 1 5 
 
 
 
 R e a d   t h e   c h a n n e l s   a n d   t h e i r   c o r r e c t i o n   v a l u e s   f r o m   a   f i l e   w i t h   a n   I N I   f o r m a t : 
 
 x m l t v _ t i m e _ m o d i f y   / c h a n n e l s : c h a n n e l s _ a n d _ c o r r e c t i o n s . i n i 
 
 
 
 P r o v i d e   a   l i s t   o f   c h a n n e l s   t o   a p p l y   c o r r e c t i o n   o f   - 2   h o u r s : 
 
 x m l t v _ t i m e _ m o d i f y   / c h a n n e l s : " C h a n n e l 1 I d ,   C h a n n e l 2 I d ,   C h a n n e l 3 I d "   / c o r r e c t i o n : - 2 
 
 