Convert variable to UTC

Hi,
I'm attempting to convert a variable to UTC format.  I retrieve two date parameters from database table and are in EST format.  I then use those date parameters to query from my source component.  The source dates are stored in UTC format. 
Here is the code I have so far, but when it run it the script task just hangs.  I've tried debugging the script itself but i'm not getting an error it just hangs.
Public Sub Main()
' Add your code here
Dim tz As TimeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("Eastern Standard Time")
Dts.Variables("User::StartDate").Value = TimeZoneInfo.ConvertTimeToUtc(CType(Dts.Variables("User::RMDBStartDate").Value, Date), tz)
Dts.Variables("User::EndDate").Value = TimeZoneInfo.ConvertTimeToUtc(CType(Dts.Variables("User::RMDBEndDate").Value, Date), tz)
Dts.TaskResult = ScriptResults.Success
End Sub
Any help is appreciated!
Thanks
b
Brian Forster

Brian,use TRY-CATCH, FireOnError to log.
The issue I suspect is in datatype.
Presumably the input is not of DateTime type.
Arthur My Blog

Similar Messages

  • FCP ERROR when trying to convert variable frame rate Panasonic P2

    Ok, yesterday I was able to convert variable frame rate footage so it rendered out nice slo mo's via DVCPRO HD Frame rate converter in FCP 6.0.4, it worked perfect. I tried it multiple times - So I know it can be done... Today however I created the same "easy setup" in FCP I used yesterday, and it wont work?
    it comes up with the error:
    "An error occurred during processing, unable to conform source media FCP" is there some setting that by default switches"
    has anyone heard of this happening? it seems like a program error... but I could be wrong... I haven't been able to figure it out on my own.
    does anyone have any suggestions?
    Thanks!
    A

    Lance,
    Sounds like you have done a very thorough job of tracking down your problem and a temporary solution. Just one question. Is the footage from the HDX-900 that you say...
    Lance Moody wrote:
    Since some footage from the HDX-900 was shot at 60FPS for conversion to 24FPS as slo-mo, I then attempted to use the DVCPRO HD Frame Rate converter to accomplish this.
    flagged in camera as being 24fps or are you just trying to convert it after the fact?
    o| TonyTony |o

  • How to convert variables on program to shared variables?

    Hi I want the controls and indicators of an already existing programs to be available on the Data Dashboard of a tablet/phone. What are the steps to follow if I want to convert them into shared variables so that I can send them to the dashboard. I just found results on how to create new shared variables.
    Also the existing program is a state machine. So will the variables be available on the dashboard simulteneously or is it possible to visualise the controls in the form of multiples tabs on Dashboard, like it is on the original program?

    I don't know of any way to convert the controls to shared variables. You're going to have to create the shared variables fresh and wire them up in a way that makes sense for your application.
    As for tabs...kind of. Each dashboard can be configured to have different screens and you can move between them. This is probably the guide you want to follow:
    http://www.ni.com/white-paper/13757/en/

  • Convert variable into an array

    I have variable, abc; whose value is in the format val1,val2,val3,..
    I want to convert it into an array, like that arr[0]=val1; arr[1]=val2; so on. How can I do this?
    Usman

    examine this class that I did
    import java.lang.*;
    public class ReadString {
    public static void main(String[] args){
    String abc = "1,2,3,4,5,6";
    StringBuffer abc2 = new StringBuffer(abc);
    int arrayLength = abc2.length(); //get length
    int[] abcFinal = new int[6];
    for (int i=0; i<arrayLength; i++) { //test characters
         int anIndex;
         if (!(abc2.substring(i,i+1)).equals(",")) { //if it is a number
         //(i/2) is ta little formula to be able to assign the
         //right index in the intArray to the number
         anIndex = (i/2);
         //set value to array
         abcFinal[anIndex] = Integer.parseInt(abc2.substring(i,i+1));
    for (int j=0;j<abcFinal.length;j++ ) {
         System.out.println("i = " + j + " value = " + abcFinal[j]);
    }//end main
    }//end class

  • Convert variable type f into variable type p decimals 2

    Hi,
    How can i convert a type f variable into a type p decimals 2 variable?
    I'm trying to make this division:
    var type f.
    var1 type p decimals 2
    var = 50 / 100.
    the result is:
    var = 5.0000000000000000E-01
    if i do
    move var to var1.
    the result is:
    var1 = 0.01 ???
    can anyone tell me what i'm doing wrong?

    DATA: var type f,
          var1 type p decimals 2.
    var = 50 / 100.
    WRITE:/ var.
    move var to var1.
    WRITE:/ var1.
    Result is: 0.50
    I don't see what's your problem...
    Greetings,
    Blag.

  • CONVERT VARIABLE IN FIELD

    Hello everybody!,
    Is there somebody who knows how to convert a variable created from Active Studio for using as a field?. I had created a variable but it does not appear when I do a filfer, because I need for comparing with another field, I want to know how do I can do that.
    I expect your good answer.
    Best Regards!!

    Hi Thobias, How are u?
    Thank you very much for helping me, but unfortunately I don't refer that because a parameter it's what you created is what you show in report properties, and I refer to a variable which was created with the calculation tab, sorry for not mentioned it.
    These variables as you know you can rename and they appear in the combobox of the calculation tab also they appear in the field tab, and I want that these variables can show in the combobox of the filter tab, I tried to do that, and sometimes is not possible and I don't know why not. For do this it is very simple you only have to create a calculated field, after that you have to compilate the content, and rename if you want, finally you can use the field created on the calculation tab. It can select as field in the filter expresion before the comparison, or after of comparison you must select field in the combobox.
    Best Regards!!,
    Erik Dguez Ant

  • How to Convert Variable containing HTML to be read as HTML in HTML region

    To understand the question, I have a table storing generated HTML by user and report type:
    USER      | REPORT_TYPE | HTML_GENERATED
    ----------------------------------------------------------------------------------------|
    TEST_USER |   TEST      | <HTML><head><title></title></head><BODY>TEST</BODY></HTML>   |On the page exists a process using a PL/SQL anonymous block which is set to "On Load Before Header". Here is a portion of it:
    SELECT HTML_GENERATED into :P2_HTML
    from LN_DOCUMENT_LABELS
    where USER = :app_user AND REPORT_TYPE = 'TEST';The idea is to generate all the HTML behind the scenes in another package.
    There exists a single Item on the page to store the variable into:
    P2_HTML     (Hidden) Then I created an HTML region, and within that region I wanted to call in the item so I entered:
    &P2_HTML.The result simply displays the HTML code:
    <HTML><head><title></title></head><BODY>TEST</BODY></HTML>Is there a way to force it to be the result of HTML code when the page renders?
    TEST

    KylePN wrote:
    To understand the question, I have a table storing generated HTML by user and report type:
    USER      | REPORT_TYPE | HTML_GENERATED
    ----------------------------------------------------------------------------------------|
    TEST_USER |   TEST      | <HTML><head><title></title></head><BODY>TEST</BODY></HTML>   |
    Hopefully that's just poorly chosen sample HTML? APEX page templates already include those elements. Trying to output a complete HTML document inside an APEX page generally results in a mangled, inoperative mess.
    On the page exists a process using a PL/SQL anonymous block which is set to "On Load Before Header". Here is a portion of it:
    SELECT HTML_GENERATED into :P2_HTML
    from LN_DOCUMENT_LABELS
    where USER = :app_user AND REPORT_TYPE = 'TEST';The idea is to generate all the HTML behind the scenes in another package. In APEX it's not necessarily a good idea. Why use this approach rather than existing APEX features?
    There exists a single Item on the page to store the variable into:
    P2_HTML     (Hidden) Then I created an HTML region, and within that region I wanted to call in the item so I entered:
    &P2_HTML.The result simply displays the HTML code:
    <HTML><head><title></title></head><BODY>TEST</BODY></HTML>Is there a way to force it to be the result of HTML code when the page renders?
    TEST
    Hidden page items these will always be escaped when referenced as static text substitution strings. (You may indeed have done this in previous versions of APEX at some point in the past, but there have been incremental restrictions introduced in several recent APEX versions.)
    Instead of a hidden page item, use an application item, or a Display Only page item with display Condition set to Never.

  • Convert Variable User Exit to ABAP OO

    Hi, I recall an article that demonstrated a better way to implement the Varaible User Exit with ABAP OO, instead of the usual design.  The ABAP OO way would eliminate a single variable code error from shutting down all of the others.   Can anyone point me to the article?
    Thanks

    Hello,
    You can use BADI which is a ABAP OO.
    [Enhancing DataSources with BAdI RSU5_SAPI_BADI|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3001894b-b1fb-2910-77ba-e80b6f2053b7]
    [Implementing a Business Add In (BAdI) in an Enhancement|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0456c54-0901-0010-f0b3-cd765fb99702]
    Thanks
    Chandran

  • Power Query Language Functions to Convert a UTC Date/Time to MST

    I need to convert an implicit UTC date/time value to a MST date/time value.  I thought that I could achieve this by converting to an ISO 8601 compliant text representation of the MST date/time value (see below) and then back to a date/time value, but
    it's not working ...
    DateTime.FromText( DateTime.ToText( [MIN_REVSN_RLSE_DTTM] ,"yyyy-MM-ddThh:mm:ss-07")) 
    Is this a bug?  Or, is there a better way to do this?

    That's a fixed duration. Why not just [MIN_REVSN_RLSE_DTTM] + #duration(0, -7, 0, 0)?
    EDIT: For what it's worth, I don't think PQ ever does anything with DST anyway. This has both good points and bad points.

  • Fixed Video CreationDate Sorting After Converting PSE Catalog

    My experience with the problems of sorting videos properly by creating date nearly caused me to give up and go back to PSE Organizer...but I dug in, hacked out a solution, and now I'm sharing it in case it helps anyone else.  This worked for me...but please realize that I could have destroyed my own catalogs if things weren't all as expected.  My Python script below is a down & dirty, no frills way to convert and push all the "CORRECT" timestamps in my old PSE10 catalog to the horribly handled and mis-dated VIDEO files in LR4.  Here's the script for all those who dare to take the life of their catalogs into their own hands.
    #  WARNING: Use at your own risk.  This worked for me, but could completely    #
    #           DESTROY your catalogs for both Lightroom (LR) and Photoshop        #
    #           Express (PSE).  Copy the {YourFilename}.lrcat from LR and the      #
    #           catalog.pse??db from PSE to your local python directory and make   #
    #           BACKUP copies of those files before you try to move the modified   #
    #           ones back to their proper locations.                               #
    # Auth...erm, Hacker: Sam Birch                                                #
    #  Purpose: Fix Adobe's repeated inability to apply proper dates to video      #
    #           files when importing a PSE catalog.  This script gets the list of  #
    #           all video files in a Lightroom 4.0 catalog (have not verified this #
    #           for any other version), looks for the correct creation date/time   #
    #           for those files in the PSE catalog, converts the PSE UTC stamp to  #
    #           MY LR local timezone (US/Central), properly formats the output for #
    #           LR's captureTime, and saves them in the LR catalog.                #
    #    Notes: 1) I moved from PSE 10 to LR 4.  Those are all I wrote this for,   #
    #              so do not expect this to work for anything else.                #
    #           2) I am in the US/Central timezone, so anyone not in that timezone #
    #              will need to edit the script to make it work properly for you.  #
    #           3) This is a Python script, and I used 2.7.2 on Windows.  I also   #
    #              needed to add the pytz package to handle the timezone           #
    #              conversion properly.                                            #
    #           4) I am not a Python expert.  I wanted to learn Python, and it let #
    #              me accomplish what I wanted.  I would appreciate any construct- #
    #              ive criticism with proposed improved code, but please don't ask #
    #              for modifications or customizations from me.  I don't have the  #
    #              time or knowledge to do so...sorry.  As this was simply about   #
    #              taking the least time to get LR functional for me, all config   #
    #              items are hard-coded and require modification of the script...  #
    #           5) ALL my video files had unique names.  If this is not the case   #
    #              for you, THIS WILL NOT WORK RIGHT FOR YOU!!!!                   #
    import sqlite3 as lite
    import sys
    import os, time
    from datetime import datetime, timedelta
    from pytz import timezone
    import pytz
    # Your Lightroom catalog (COPIED to the local dir)
    lrcon = lite.connect('./test-fresh.lrcat')
    # Your Photoshop Express Organizer catalog (COPIED to the local dir)
    psecon = lite.connect('./catalog.pse10db')
    # Get all the video files in the LR catalog...
    lrcur = lrcon.cursor()   
    lrcur.execute("SELECT Adobe_images.CaptureTime, AgLibraryRootFolder.absolutePath, AgLibraryFolder.pathFromRoot, AgLibraryFile.idx_filename, Adobe_images.id_local  FROM Adobe_images, AgLibraryFile, AgLibraryFolder,AgLibraryRootFolder WHERE (Adobe_images.fileFormat=\"VIDEO\") AND (Adobe_images.rootFile=AgLibraryFile.id_local) AND (AgLibraryFile.folder=AgLibraryFolder.id_local) AND (AgLibraryFolder.rootFolder=AgLibraryRootFolder.id_local);")
    psecur = psecon.cursor()
    rows = lrcur.fetchall()
    # Variable setup for stats and timezone conversion...
    failcount = 0
    successcount = 0
    utc=pytz.utc
    central=timezone('US/Central')
    fmt = "%Y-%m-%dT%H:%M:%S" #LR captureTime format string
    for row in rows:
        # Attempt to fix through local modified time...but useless since I used
        # PSE backup/restore a few years ago, and that wiped out all original
        # timestamp information.  If you are in Windows and your modified timestamp
        # on the file is correct, this should work...since it worked (but didnt' fix
        # my problem due to PSE's terrible version of backup/restor), I thought I
        # would leave the code as inspiration for others it still may work for...
        #myroot = row[1].encode('utf8')
        #mypath = row[2].encode('utf8')
        #myfile = row[3].encode('utf8')
        #myidx = row[4]
        #photo = myroot+mypath+myfile
        #mytimeLR = time.strftime("%Y-%m-%dT%H:%M",time.localtime(os.path.getmtime(photo)))
        #print photo," last modified: ",mytimeLR
        #updateTmp = (mytimeLR,myidx)
        #lrcur.execute('UPDATE Adobe_images SET captureTime=? WHERE id_local=?',updateTmp)
        #lrcon.commit()
        # Get the filename (ALL MY VIDEOS HAD UNIQUE FILENAMES, SO THIS LEVEL OF MATCHING SUFFICED FOR MY PURPOSES)
        myfile = row[3].encode('utf8')
        # Set up the parameter for the query to the PSE catalog
        matchParm = []
        matchParm.append(myfile)
        # Get the UTC timestamp and file name from the PSE catalog
        psecur.execute('SELECT search_date_begin, filepath_search_index FROM media_table WHERE lower(filename_search_index)=lower(?)',matchParm)
        pserow = psecur.fetchone() # I could do this because I KNOW all my video files have unique names
        if pserow != None:
            # Go through the hassle of decoding and converting the UTC time to US/Central...as well
            # as from the PSE format to LR format similar but different enought to be annoying...
            psedate = pserow[0].encode('utf8')
            pseUTC = datetime(int(psedate[0:4]),int(psedate[4:6]),int(psedate[6:8]),int(psedate[9:11]),int(pse date[11:13]),int(psedate[13:15]),0,tzinfo=utc)
            lrLocal = pseUTC.astimezone(central)
            lrDate = lrLocal.strftime(fmt)
            # I like seeing progress...
            print myfile, ": ", pserow[0]," -> ", lrDate
            # push the corrected time back into the LR catalog...the only WRITE activity so far...
            updateParm = (lrDate,myidx)
            lrcur.execute('UPDATE Adobe_images SET captureTime=? WHERE id_local=?',updateParm)
            lrcon.commit()
            successcount += 1
        else:
            # I got here because I added some video files to LR after I imported, but before
            # I hacked out this script...
            failcount += 1
    print "SUMMARY: success count = ", successcount, "  - fail count = ", failcount
    if lrcon:
        lrcon.close()
    if psecon:
        psecon.close()
    Sam

    Also, since my camera does not create sidecar files and the video format does not allow for metadata directly...I have problems with date sorting.  LR likes the "Creation Date"; while I understand that Windows' NTFS is one of the few operating systems that actually store a "Modified Date", I cannot understand why Adobe would choose to use a data that changes with every copy (Creation Date), rather than the original capture date (Modified Date) when it is clearly available.
    My solution is to move my videos to their final destination outside of LR, run the below PowerShell script to set Creation and Accessed dates both to the Modified date for the file, and then import with LR.  This is a blatant waste of time, but it seems the least of evils I'm aware of (up to the LR 4.0 I'm currently running).  If anyone knows of a better solution, please point me that direction.  Otherwise, I'm hoping this may help others in my boat.
    If you ask "Why PowerShell when your last script was Python?"...it boiled down to being able to do the most work with the least amount of coding since Powershell has all that's necessary.
    Just create the below as FixDates.ps1, then use command.exe in the root of the directory (and sub directories, since this works recursively) you want to do this for.  I use this on the directory for the batch I just imported.
    OH, AND OF COURSE...USE FOR INSPIRATION/UTILITY AT YOUR OWN RISK.  IT WORKS FOR ME, BUT I GUARANTEE NOTHING...
    $Videos = Get-ChildItem . -Recurse | where{$_.Extension -match "avi|mov|3gs"}
    foreach ($Video in $Videos) {
        Write-Host $Video.fullname
        $Video.CreationTime = $Video.LastWriteTime
        $Video.LastAccessTime = $Video.LastWriteTime
    Sam

  • Getting UTC date from NSDate

    I am using following function to convert NSDate in "UTC" date.
    -(NSString *)getUTCFormateDate:(NSDate *)localDate
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    NSTimeZone *timeZone = [NSTimeZone timeZoneWithName:@"UTC"];
    [dateFormatter setTimeZone:timeZone];
    [dateFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
    NSString *dateString = [dateFormatter stringFromDate:localDate];
    return dateString;
    I am getting result correct for some dates and I am not getting it correct for some of date.it converts time perfectly , but for some date it converts year to the next year.
    following are some observation.
    firstDate = 2008-12-27 17:17:58 +0530.
    firstUtcDate = 2008-12-27 11:47:58.
    secondDate = 2008-12-29 16:30:00 +0530.
    secondUtcDate = 2009-12-29 11:00:00 //the year has been changed.
    thirdDate = 2008-12-29 17:00:00 +0530
    thirdUtcDate = 2009-12-29 11:30:00 //again the year has been changed.
    Can anyone tell me what is problem with function.
    Thaks
    Message was edited by: xmax
    Message was edited by: xmax

    xmax wrote:
    I am using following function to convert NSDate in "UTC" date.
    -(NSString *)getUTCFormateDate:(NSDate *)localDate
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    NSTimeZone *timeZone = [NSTimeZone timeZoneWithName:@"UTC"];
    [dateFormatter setTimeZone:timeZone];
    [dateFormatter setDateFormat:@"YYYY-MM-dd HH:mm:ss"];
    NSString *dateString = [dateFormatter stringFromDate:localDate];
    return dateString;
    Can anyone tell me what is problem with function.
    Try changing the year formatting arguments to "yyyy". "YYYY" means something else besides the year: Year (of "Week of Year"), used in ISO year-week calendar. May differ from calendar year.
    See the Unicode docs for an explanation.
    charlie

  • TZ=UTC issue/ question - no response in DBA general forum

    Hi All,
    Env: Sun SOlaris 8
    Database 10.2.0.1.0
    a) Introdued an env variable TZ=UTC at OS level
    b) I'm able to see the change in SQLPLUS when using BEQ connection:
    $ echo $TZ
    UTC
    $ date
    Fri Mar 16 16:37:03 UTC 2007
    $ sqlp
    SQL*Plus: Release 10.2.0.1.0 - Production on Fri Mar 16 16:36:34 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS') from dual
    2 /
    TO_CHAR(SYSDATE,'DD-MON-YYYYH
    16-MAR-2007 16:37:47
    c) However unable to see this change when using LISTENER:
    SQL> conn system@<<CONNECTSTRING>>
    Enter password:
    Connected.
    SQL> select to_char(sysdate,'DD-MON-YYYY HH24:MI:SS') from dual
    2 /
    TO_CHAR(SYSDATE,'DD-MON-YYYYHH24:MI:SS')
    16-MAR-2007 10:39:38
    d) I did restart LISTENER and also DATABASE.
    Did NOT help.
    Any help is appreciated
    Thanks
    Rgds
    Natrajan

    Assuming that the connect string is aliasing the same database, does the current_timestamp show different time zones for the connections;
    select global_name from global_name;
    select systimestamp from dual;
    select current_timestamp from dual;

  • UTC or GMT to Australia Local DateTime Conversion (Melbourne, Victoria)

    Hi Guys,
    I have to convert UTC or GMT DateTime to Australia Local DateTime Conversion (Melbourne, Victoria) and we need to consider Daylight Saving which starts every Year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours
    from Daylight Saving Start Date to Daylight Saving End Date which finishes on 1st Sunday of April Month every Year.
    Other that Daylight Saving Time Difference between UTC and VIC loacal time is 10 Hours. So Non Daylight Starts on
    1st Sunday of April Month every Year and ends on October first Sunday every Year.
    Note: On first Sunday of October Month at 2 AM, Our System Time moves 1 hour ahead so It displays 3 AM. Our Wrist Watch, you adjust manually and we make 1 hour ahead. So Technically Time between 2 AM to 2:59:59:599 does not exists in
    Melbourne and 2 AM means 3 AM and 2:10 AM means 3:10 AM Etc
    http://www.timeanddate.com/worldclock/converter.html
    http://www.business.vic.gov.au/operating-a-business/how-to-start/trading-hours/daylight-saving
    http://www.world-time.com.au/index.php?option=com_content&view=article&id=12&Itemid=4
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi Guys,
    To convert data from UTC to Local, I used Custom table and I defined 4 columns DAYLIGHT_START_DT, DAYLIGHT_END_DT, AEST_START_DT and AEST_END_DT.
    and Wrote below function to get conversion.
    --Function to Convert UTC to Local
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE Function [dbo].[UTCtoCurrentTime]
           @date datetime
    Returns datetime
    As 
    Begin
    Declare @OUTPUT datetime
    SET @OUTPUT=
    SELECT 
           CASE WHEN @date BETWEEN [DAYLIGHT_START_DT_UTC] AND [DAYLIGHT_END_DT_UTC] 
                THEN DATEADD(hh,[HOURS_DIFF_DURING_DAYLIGHT],@date)
    WHEN @date>[DAYLIGHT_END_DT_UTC] AND @date<=[AEST_END_DT_UTC] 
    THEN DATEADD(hh,[HOURS_DIFF_DURING_AEST],@date)
    END 
    FROM [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE]
    WHERE [AEST_END_DT] IS NOT NULL 
    AND ((@date BETWEEN [DAYLIGHT_START_DT_UTC] AND [DAYLIGHT_END_DT_UTC]) OR (@date>[DAYLIGHT_END_DT_UTC] AND @date<=[AEST_END_DT_UTC] ))
    Return @OUTPUT
    End
    GO
    --Function to Convert Local to UTC
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE Function [dbo].[CurrentTimeToUTC]
           @date datetime
    Returns datetime
    As 
    Begin
    Declare @OUTPUT datetime
    SET @OUTPUT=
    SELECT 
           CASE WHEN @date BETWEEN [DAYLIGHT_START_DT_LOCAL] AND [DAYLIGHT_END_DT_LOCAL] 
                THEN DATEADD(hh,-1*[HOURS_DIFF_DURING_DAYLIGHT],@date)
    WHEN @date>[DAYLIGHT_END_DT_LOCAL] AND @date<=[AEST_END_DT_LOCAL] 
    THEN DATEADD(hh,-1*[HOURS_DIFF_DURING_AEST],@date)
    END 
    FROM [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE]
    WHERE [AEST_END_DT] IS NOT NULL 
    AND ((@date BETWEEN [DAYLIGHT_START_DT_LOCAL] AND [DAYLIGHT_END_DT_LOCAL]) OR (@date>[DAYLIGHT_END_DT_LOCAL] AND @date<=[AEST_END_DT_LOCAL] ))
    Return @OUTPUT
    End
    GO
    But I made a mistake When Storing data into my Table [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE]. As I have to Convert from UTC to Local So I have to Store data into UCT format but I stored into Local DateTime format and then I was getting wrong output
    for boundaries values.
    But once I realized, I changed the Table Structure and added column for UTC and LOCAL both
    DAYLIGHT_START_DT_UTC, DAYLIGHT_START_DT_LOCAL, DAYLIGHT_END_DT_UTC, DAYLIGHT_END_DT_LOCAL, AEST_START_DT_UTC, AEST_START_DT_LOCAL, AEST_END_DT_UTC & AEST_END_DT_LOCAL
    and then above Functions were working perfectly.
    Here is complete data and Table Structure:
    SET
    ANSI_NULLS ON
    GO
    SET
    QUOTED_IDENTIFIER ON
    GO
    SET
    ANSI_PADDING ON
    GO
    CREATE
    TABLE
    [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE](
    [YEAR] [int]
    NOT NULL,
    [DAYLIGHT_START_DAY] [varchar](15)
    NOT NULL,
    [DAYLIGHT_START_DT_UTC]
    [datetime] NOT NULL,
    [DAYLIGHT_START_DT_LOCAL]
    [datetime] NOT NULL,
    [DAYLIGHT_END_DT_UTC] [datetime]
    NOT NULL,
    [DAYLIGHT_END_DT_LOCAL]
    [datetime] NOT NULL,
    [HOURS_DIFF_DURING_DAYLIGHT]
    [tinyint] NOT NULL,
    [AEST_START_DT_UTC] [datetime]
    NULL,
           [AEST_START_DT_LOCAL]
    [datetime] NULL,
    [AEST_END_DT_UTC] [datetime]
    NULL,
    [AEST_END_DT_LOCAL] [datetime]
    NULL,
    [HOURS_DIFF_DURING_AEST]
    [tinyint] NULL,
    [REC_UPDT_USER] [varchar](30)
    NOT NULL,
    [REC_LOAD_DT] [datetime]
    NOT NULL,
    [COMMENTS] [varchar](200)
    NULL
    ON [PRIMARY]
    GO
    SET
    ANSI_PADDING OFF
    GO
    ALTER
    TABLE
    [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE]
    ADD  DEFAULT
    (getdate())
    FOR [REC_LOAD_DT]
    GO
    YEAR
    DAYLIGHT_START_DAY
    DAYLIGHT_START_DT_UTC
    DAYLIGHT_START_DT_LOCAL
    DAYLIGHT_END_DT_UTC
    DAYLIGHT_END_DT_LOCAL
    HOURS_DIFF_DURING_DAYLIGHT
    AEST_START_DT_UTC
    AEST_START_DT_LOCAL
    AEST_END_DT_UTC
    AEST_END_DT_LOCAL
    HOURS_DIFF_DURING_AEST
    REC_UPDT_USER
    REC_LOAD_DT
    COMMENTS
    2005
    Sunday
    2005-29-10 16:00:00
    2005-30-10 2:00:00
    2006-01-04 17:00:00
    2006-02-04 3:00:00
    11
    2006-01-04 17:00:01
    2006-02-04 3:00:01
    2006-30-09 15:59:59
    2006-01-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:51:23
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2006
    Sunday
    2006-30-09 16:00:00
    2006-01-10 2:00:00
    2007-31-03 17:00:00
    2007-01-04 3:00:00
    11
    2007-31-03 17:00:01
    2007-01-04 3:00:01
    2007-06-10 15:59:59
    2007-07-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:46:48
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2007
    Sunday
    2007-06-10 16:00:00
    2007-07-10 2:00:00
    2008-05-04 17:00:00
    2008-06-04 3:00:00
    11
    2008-05-04 17:00:01
    2008-06-04 3:00:01
    2008-04-10 15:59:59
    2008-05-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:46:06
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2008
    Sunday
    2008-04-10 16:00:00
    2008-05-10 2:00:00
    2009-04-04 17:00:00
    2009-05-04 3:00:00
    11
    2009-04-04 17:00:01
    2009-05-04 3:00:01
    2009-03-10 15:59:59
    2009-04-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:44:47
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2009
    Sunday
    2009-03-10 16:00:00
    2009-04-10 2:00:00
    2010-03-04 17:00:00
    2010-04-04 3:00:00
    11
    2010-03-04 17:00:01
    2010-04-04 3:00:01
    2010-02-10 15:59:59
    2010-03-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:41:48
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2010
    Sunday
    2010-02-10 16:00:00
    2010-03-10 2:00:00
    2011-02-04 17:00:00
    2011-03-04 3:00:00
    11
    2011-02-04 17:00:01
    2011-03-04 3:00:01
    2011-01-10 15:59:59
    2011-02-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:34:16
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2011
    Sunday
    2011-01-10 16:00:00
    2011-02-10 2:00:00
    2012-31-03 17:00:00
    2012-01-04 3:00:00
    11
    2012-31-03 17:00:01
    2012-01-04 3:00:01
    2012-06-10 15:59:59
    2012-07-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:35:39
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2012
    Sunday
    2012-06-10 16:00:00
    2012-07-10 2:00:00
    2013-06-04 17:00:00
    2013-07-04 3:00:00
    11
    2013-06-04 17:00:01
    2013-07-04 3:00:01
    2013-05-10 15:59:59
    2013-06-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:36:22
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2013
    Sunday
    2013-05-10 16:00:00
    2013-06-10 2:00:00
    2014-05-04 17:00:00
    2014-06-04 3:00:00
    11
    2014-05-04 17:00:01
    2014-06-04 3:00:01
    2014-04-10 15:59:59
    2014-05-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:37:31
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2014
    Sunday
    2014-04-10 16:00:00
    2014-05-10 2:00:00
    2015-04-04 17:00:00
    2015-05-04 3:00:00
    11
    2015-04-04 17:00:01
    2015-05-04 3:00:01
    2015-03-10 15:59:59
    2015-04-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:39:08
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2015
    Sunday
    2015-03-10 16:00:00
    2015-04-10 2:00:00
    2016-02-04 17:00:00
    2016-03-04 3:00:00
    11
    2016-02-04 17:00:01
    2016-03-04 3:00:01
    2016-01-10 15:59:59
    2016-02-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:44:31
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2016
    Sunday
    2016-01-10 16:00:00
    2016-02-10 2:00:00
    2017-01-04 17:00:00
    2017-02-04 3:00:00
    11
    2017-01-04 17:00:01
    2017-02-04 3:00:01
    2017-30-09 15:59:59
    2017-01-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:44:57
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2017
    Sunday
    2017-30-09 16:00:00
    2017-01-10 2:00:00
    2018-31-03 17:00:00
    2018-01-04 3:00:00
    11
    2018-31-03 17:00:01
    2018-01-04 3:00:01
    2018-06-10 15:59:59
    2018-07-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:48:12
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2018
    Sunday
    2018-06-10 16:00:00
    2018-07-10 2:00:00
    2019-06-04 17:00:00
    2019-07-04 3:00:00
    11
    2019-06-04 17:00:01
    2019-07-04 3:00:01
    2019-05-10 15:59:59
    2019-06-10 1:59:59
    10
    ABC\shivendoo.kumar
    2013-18-11 16:48:44
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2019
    Sunday
    2019-05-10 16:00:00
    2019-06-10 2:00:00
    2020-04-04 17:00:00
    2020-05-04 3:00:00
    11
    2020-04-04 17:00:01
    2020-05-04 3:00:01
    2020-03-10 15:59:59
    2020-04-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:55:54
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2020
    Sunday
    2020-03-10 16:00:00
    2020-04-10 2:00:00
    2021-03-04 17:00:00
    2021-04-04 3:00:00
    11
    2021-03-04 17:00:01
    2021-04-04 3:00:01
    2021-02-10 15:59:59
    2021-03-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:56:48
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2021
    Sunday
    2021-02-10 16:00:00
    2021-03-10 2:00:00
    2022-02-04 17:00:00
    2022-03-04 3:00:00
    11
    2022-02-04 17:00:01
    2022-03-04 3:00:01
    2022-01-10 15:59:59
    2022-02-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:58:01
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2022
    Sunday
    2022-01-10 16:00:00
    2022-02-10 2:00:00
    2023-01-04 17:00:00
    2023-02-04 3:00:00
    11
    2023-01-04 17:00:01
    2023-02-04 3:00:01
    2023-30-09 15:59:59
    2023-01-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 16:59:55
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2023
    Sunday
    2023-30-09 16:00:00
    2023-01-10 2:00:00
    2024-06-04 17:00:00
    2024-07-04 3:00:00
    11
    2024-06-04 17:00:01
    2024-07-04 3:00:01
    2024-05-10 15:59:59
    2024-06-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 17:00:30
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    2024
    Sunday
    2024-05-10 16:00:00
    2024-06-10 2:00:00
    2025-05-04 17:00:00
    2025-06-04 3:00:00
    11
    2025-05-04 17:00:01
    2025-06-04 3:00:01
    2025-04-10 15:59:59
    2025-05-10 1:59:59
    10
    ABC\shivendoo.kumar
    2014-14-02 17:02:06
    Day light saving starts each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2010, N'Sunday', CAST(0x00009E030107AC00 AS DateTime), CAST(0x00009E040020F580 AS DateTime), CAST(0x00009EB9011826C0 AS DateTime), CAST(0x00009EBA00317040 AS
    DateTime), 11, CAST(0x00009EB9011827EC AS DateTime), CAST(0x00009EBA0031716C AS DateTime), CAST(0x00009F6F0107AAD4 AS DateTime), CAST(0x00009F700020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A0111154E AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2011, N'Sunday', CAST(0x00009F6F0107AC00 AS DateTime), CAST(0x00009F700020F580 AS DateTime), CAST(0x0000A025011826C0 AS DateTime), CAST(0x0000A02600317040 AS
    DateTime), 11, CAST(0x0000A025011827EC AS DateTime), CAST(0x0000A0260031716C AS DateTime), CAST(0x0000A0E20107AAD4 AS DateTime), CAST(0x0000A0E30020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A01117620 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2012, N'Sunday', CAST(0x0000A0E20107AC00 AS DateTime), CAST(0x0000A0E30020F580 AS DateTime), CAST(0x0000A198011826C0 AS DateTime), CAST(0x0000A19900317040 AS
    DateTime), 11, CAST(0x0000A198011827EC AS DateTime), CAST(0x0000A1990031716C AS DateTime), CAST(0x0000A24E0107AAD4 AS DateTime), CAST(0x0000A24F0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A0111A8A7 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2013, N'Sunday', CAST(0x0000A24E0107AC00 AS DateTime), CAST(0x0000A24F0020F580 AS DateTime), CAST(0x0000A304011826C0 AS DateTime), CAST(0x0000A30500317040 AS
    DateTime), 11, CAST(0x0000A304011827EC AS DateTime), CAST(0x0000A3050031716C AS DateTime), CAST(0x0000A3BA0107AAD4 AS DateTime), CAST(0x0000A3BB0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A0111FA72 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2014, N'Sunday', CAST(0x0000A3BA0107AC00 AS DateTime), CAST(0x0000A3BB0020F580 AS DateTime), CAST(0x0000A470011826C0 AS DateTime), CAST(0x0000A47100317040 AS
    DateTime), 11, CAST(0x0000A470011827EC AS DateTime), CAST(0x0000A4710031716C AS DateTime), CAST(0x0000A5260107AAD4 AS DateTime), CAST(0x0000A5270020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A01126BB7 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2015, N'Sunday', CAST(0x0000A5260107AC00 AS DateTime), CAST(0x0000A5270020F580 AS DateTime), CAST(0x0000A5DC011826C0 AS DateTime), CAST(0x0000A5DD00317040 AS
    DateTime), 11, CAST(0x0000A5DC011827EC AS DateTime), CAST(0x0000A5DD0031716C AS DateTime), CAST(0x0000A6920107AAD4 AS DateTime), CAST(0x0000A6930020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A0113E61E AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2016, N'Sunday', CAST(0x0000A6920107AC00 AS DateTime), CAST(0x0000A6930020F580 AS DateTime), CAST(0x0000A748011826C0 AS DateTime), CAST(0x0000A74900317040 AS
    DateTime), 11, CAST(0x0000A748011827EC AS DateTime), CAST(0x0000A7490031716C AS DateTime), CAST(0x0000A7FE0107AAD4 AS DateTime), CAST(0x0000A7FF0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A0114042C AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2017, N'Sunday', CAST(0x0000A7FE0107AC00 AS DateTime), CAST(0x0000A7FF0020F580 AS DateTime), CAST(0x0000A8B4011826C0 AS DateTime), CAST(0x0000A8B500317040 AS
    DateTime), 11, CAST(0x0000A8B4011827EC AS DateTime), CAST(0x0000A8B50031716C AS DateTime), CAST(0x0000A9710107AAD4 AS DateTime), CAST(0x0000A9720020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A0114E983 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2018, N'Sunday', CAST(0x0000A9710107AC00 AS DateTime), CAST(0x0000A9720020F580 AS DateTime), CAST(0x0000AA27011826C0 AS DateTime), CAST(0x0000AA2800317040 AS
    DateTime), 11, CAST(0x0000AA27011827EC AS DateTime), CAST(0x0000AA280031716C AS DateTime), CAST(0x0000AADD0107AAD4 AS DateTime), CAST(0x0000AADE0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A27A01150E75 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2009, N'Sunday', CAST(0x00009C970107AC00 AS DateTime), CAST(0x00009C980020F580 AS DateTime), CAST(0x00009D4D011826C0 AS DateTime), CAST(0x00009D4E00317040 AS
    DateTime), 11, CAST(0x00009D4D011827EC AS DateTime), CAST(0x00009D4E0031716C AS DateTime), CAST(0x00009E030107AAD4 AS DateTime), CAST(0x00009E040020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D20113268C AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2008, N'Sunday', CAST(0x00009B2B0107AC00 AS DateTime), CAST(0x00009B2C0020F580 AS DateTime), CAST(0x00009BE1011826C0 AS DateTime), CAST(0x00009BE200317040 AS
    DateTime), 11, CAST(0x00009BE1011827EC AS DateTime), CAST(0x00009BE20031716C AS DateTime), CAST(0x00009C970107AAD4 AS DateTime), CAST(0x00009C980020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D20113F95D AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2007, N'Sunday', CAST(0x000099BF0107AC00 AS DateTime), CAST(0x000099C00020F580 AS DateTime), CAST(0x00009A75011826C0 AS DateTime), CAST(0x00009A7600317040 AS
    DateTime), 11, CAST(0x00009A75011827EC AS DateTime), CAST(0x00009A760031716C AS DateTime), CAST(0x00009B2B0107AAD4 AS DateTime), CAST(0x00009B2C0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D201145531 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2006, N'Sunday', CAST(0x0000984C0107AC00 AS DateTime), CAST(0x0000984D0020F580 AS DateTime), CAST(0x00009902011826C0 AS DateTime), CAST(0x0000990300317040 AS
    DateTime), 11, CAST(0x00009902011827EC AS DateTime), CAST(0x000099030031716C AS DateTime), CAST(0x000099BF0107AAD4 AS DateTime), CAST(0x000099C00020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D201148683 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2005, N'Sunday', CAST(0x000096FC0107AC00 AS DateTime), CAST(0x000096FD0020F580 AS DateTime), CAST(0x00009796011826C0 AS DateTime), CAST(0x0000979700317040 AS
    DateTime), 11, CAST(0x00009796011827EC AS DateTime), CAST(0x000097970031716C AS DateTime), CAST(0x0000984C0107AAD4 AS DateTime), CAST(0x0000984D0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D20115C908 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2019, N'Sunday', CAST(0x0000AADD0107AC00 AS DateTime), CAST(0x0000AADE0020F580 AS DateTime), CAST(0x0000AB93011826C0 AS DateTime), CAST(0x0000AB9400317040 AS
    DateTime), 11, CAST(0x0000AB93011827EC AS DateTime), CAST(0x0000AB940031716C AS DateTime), CAST(0x0000AC490107AAD4 AS DateTime), CAST(0x0000AC4A0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D2011706AB AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2020, N'Sunday', CAST(0x0000AC490107AC00 AS DateTime), CAST(0x0000AC4A0020F580 AS DateTime), CAST(0x0000ACFF011826C0 AS DateTime), CAST(0x0000AD0000317040 AS
    DateTime), 11, CAST(0x0000ACFF011827EC AS DateTime), CAST(0x0000AD000031716C AS DateTime), CAST(0x0000ADB50107AAD4 AS DateTime), CAST(0x0000ADB60020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D2011745D9 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2021, N'Sunday', CAST(0x0000ADB50107AC00 AS DateTime), CAST(0x0000ADB60020F580 AS DateTime), CAST(0x0000AE6B011826C0 AS DateTime), CAST(0x0000AE6C00317040 AS
    DateTime), 11, CAST(0x0000AE6B011827EC AS DateTime), CAST(0x0000AE6C0031716C AS DateTime), CAST(0x0000AF210107AAD4 AS DateTime), CAST(0x0000AF220020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D201179BCA AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2022, N'Sunday', CAST(0x0000AF210107AC00 AS DateTime), CAST(0x0000AF220020F580 AS DateTime), CAST(0x0000AFD7011826C0 AS DateTime), CAST(0x0000AFD800317040 AS
    DateTime), 11, CAST(0x0000AFD7011827EC AS DateTime), CAST(0x0000AFD80031716C AS DateTime), CAST(0x0000B08D0107AAD4 AS DateTime), CAST(0x0000B08E0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D201182176 AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2023, N'Sunday', CAST(0x0000B08D0107AC00 AS DateTime), CAST(0x0000B08E0020F580 AS DateTime), CAST(0x0000B14A011826C0 AS DateTime), CAST(0x0000B14B00317040 AS
    DateTime), 11, CAST(0x0000B14A011827EC AS DateTime), CAST(0x0000B14B0031716C AS DateTime), CAST(0x0000B2000107AAD4 AS DateTime), CAST(0x0000B2010020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D2011849FB AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    INSERT [DBO].[AUSTRALIA_DAYLIGHT_SAVING_TABLE] ([YEAR], [DAYLIGHT_START_DAY], [DAYLIGHT_START_DT_UTC], [DAYLIGHT_START_DT_LOCAL], [DAYLIGHT_END_DT_UTC], [DAYLIGHT_END_DT_LOCAL], [HOURS_DIFF_DURING_DAYLIGHT], [AEST_START_DT_UTC], [AEST_START_DT_LOCAL], [AEST_END_DT_UTC],
    [AEST_END_DT_LOCAL], [HOURS_DIFF_DURING_AEST], [REC_UPDT_USER], [REC_LOAD_DT], [COMMENTS]) VALUES (2024, N'Sunday', CAST(0x0000B2000107AC00 AS DateTime), CAST(0x0000B2010020F580 AS DateTime), CAST(0x0000B2B6011826C0 AS DateTime), CAST(0x0000B2B700317040 AS
    DateTime), 11, CAST(0x0000B2B6011827EC AS DateTime), CAST(0x0000B2B70031716C AS DateTime), CAST(0x0000B36C0107AAD4 AS DateTime), CAST(0x0000B36D0020F454 AS DateTime), 10, N'ABC\shivendoo.kumar', CAST(0x0000A2D20118BA9A AS DateTime), N'Day light saving starts
    each year October first Sunday so Time difference between UTC and AUS Local Time will be 11 hours from startdate')
    GO
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • Datetime of Records UTC vs. Local Time

    Hi, I notice that the Integrator automatically converts the datetime of records to UTC upon insertion. In Studio however, we want the analysis / records to reflect our local time instead. The Endeca Server Data Loading Guide http://docs.oracle.com/cd/E37502_01/server.751/es_data_loading/toc.htm#dateTime%20property mentions about the possibility of updating a record with two datetime properties. How is this achieved using Integrator? My records seem to be converted automatically into UTC even when I append the timezone. Thanks!

    I'm afraid this explanation doesn't quite address the question... but it's close.
    The real question is what "based on UTC time" means, vs. "UTC time"
    Assume your SCCM server is set to deploy the update at 8PM UTC, but Windows time on your SCCM server (due to the time zone it is in) is configured for UTC-2, which is 6PM when "true" UTC is at 8PM.  When does the update happen?  8PM (true
    UTC time), or 6PM (SCCM server time "based on" UTC", which includes the offset)?  I understand that all target servers will deploy simultaneously (since we selected UTC instead of local), but is that simultaneous time "true" UTC,
    or the SCCM server UTC +/- offset?

  • Detecting variable types

    Is there any existing method so that I can detect whether a value is an integer or not...I know how to convert variables to the type integer, but I need to check if it is already an integer.

    Your wording is rather vague. All variables have types, so one might ask what you are talking about.
    But let's assume you mean that you have String variables, and want to know whether or not they contain values that can be converted to integers.
    One 3way to do that is to use the Integer class. create a new integeger from your String variable. If the content is not an integre, it will throw an exception. Example:
    String var = "1.a";
    try {
    Integer i = new Integer(var);
    catch(NumberFormatException x) {
    // Not a numer, so you are now here....

Maybe you are looking for

  • Not able to save report output in a text file and RTF file

    I am using Oracle Developer6.0 . I am facing problem with reports. I am invoking reports from form using run_product. 1. I could not able to save the report in text file . Whenever i try to save the report output in a text file.It gives dump and appl

  • WRT320N can no longer connect at 2.4ghz

    I've had my WRT320N for about a year and have had no problems with it.  I use the 2.4ghz setting because a network camera uses wireless G only.  This past weekend I noticed that my laptop could not connect to the internet wirelessly.  If I reset the

  • Is it possible to query software inventory report for Oracle SQL developer installation?

    Hi all My company requires to generate a report of all kinds of Oracle database access tool. I can find Toad installation from Add/Remove Program and therefore can query for Toad. However, Oracle SQL developer is using Java. I cannot see an entry for

  • Information needed for the XMLInterface

    Hi, In the past, I used XSU to extract and insert/update data from/into the database in XML documents. In BC4J, there is now this XMLInterface, for example implemented by the ViewObject object. This looks better, because the writeXML method automagic

  • Lion 10.7.5 constant crashing right before shut down?

    I have about had it with the Mac store, so I am going to try my luck here. I bought a Mac Pro (just the tower) about 8 months ago, and since then I have had the problem of getting the "grey" screen/crash right when it's about to shut down (when the s