def subtractTimeZoneOffsetFromDate(the_date):
    # find our time zone offset in seconds
    tz = NSTimeZone.defaultTimeZone()
    seconds_offset = tz.secondsFromGMTForDate_(the_date)
    # return new NSDate minus local_offset
    return NSDate.alloc(
        ).initWithTimeInterval_sinceDate_(-seconds_offset, the_date)
Copy the text in the region to the windows clipboard.
dataset/ETHPy150Open munki/munki/code/client/munkilib/updatecheck.py/subtractTimeZoneOffsetFromDate--crossover with--dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/pyreadline/lineeditor/lineobj.py/ReadLineTextBuffer.copy_selection_to_clipboard