Want to get rid of Google Ads, click here.
+ Reply to Thread
Results 1 to 2 of 2

Thread: How to get offset value in tzfile?

  1. #1
    Junior Member
    Join Date
    Jul 2008
    Posts
    18

    Exclamation How to get offset value in tzfile?

    Is anyone know how to get offset value of tzfile in Javascript?

    functiongetTime(name){

    var timeFile =newSCFile("tzfile");

    var rc=timeFile.doSelect("name=\""+name+"\"");

    print("conversion:"+timeFile.conversion_type[0]);

    print("conversion offset:"+timeFile.conversion_type[0].offset);



    return rc;

    }


    print(getTime("Canada/Eastern"));

    The result is:
    conversion offset:Fri Dec 17 -0001 14:00:00 GMT-0500 (Eastern Standard Time)
    conversion:[C++ object Datum] @0x01594330 - {['-05:00:00', "AST"]}


    How I can get -05:00:00?

  2. #2
    Junior Member
    Join Date
    Jul 2008
    Posts
    18

    Default

    I got it. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts