hi, I am trying DateTime method. but its not working. shows some error code like following. I dont know what happend wrog. Error: } } } else { if ($val < 720624) { return 12; } else { if ($val < 720989) { return 13; } else { return 14; } } } } else { if ($val < 722450) { if ($val < 721720) { return 15; } else { if ($val < 722085) { return 16; } else { return 17; } } } else { if ($val < 722815) { return 18; } else { if ($val < 723362) { return 19; } else { return 20; } } } } } else { if ($val < 727380) { if ($val < 725737) { if ($val < 724092) { return 21; } else { if ($val < 724823) { return 22; } else { return 23; } } } else { if ($val < 726468) { return 24; } else { if ($val < 726833) { return 25; } else { return 26; } } } } else { if ($val < 728659) { if ($val < 727745) { return 27; } else { if ($val < 728110) { return 28; } else { return 29; } } } else { if ($val < 729206) { return 30; } else { if ($val < 729755) { return 31; } else { return 32; } } } } } } Kindly provide the solution except using DateTime module. Regards Suresh

In reply to Re^2: How to get current UK time by sureshrps
in thread How to get current UK time by sureshrps

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.