RTTimeLocalExplode-generic.cpp revision c98fb3e16fcd571a790eab772c0c66173d225205
137N/A/* $Id $ */
137N/A/** @file
137N/A * innotek Portable Runtime - Time, generic RTTimeLocalExplode.
137N/A */
493N/A
137N/A/*
137N/A * Copyright (C) 2006-2007 innotek GmbH
137N/A *
137N/A * This file is part of VirtualBox Open Source Edition (OSE), as
137N/A * available from http://www.virtualbox.org. This file is free software;
137N/A * you can redistribute it and/or modify it under the terms of the GNU
137N/A * General Public License as published by the Free Software Foundation,
137N/A * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
137N/A * distribution. VirtualBox OSE is distributed in the hope that it will
137N/A * be useful, but WITHOUT ANY WARRANTY of any kind.
137N/A */
137N/A
137N/A
137N/A/*******************************************************************************
137N/A* Header Files *
137N/A*******************************************************************************/
137N/A#include <iprt/time.h>
137N/A
137N/A
137N/ARTDECL(PRTTIME) RTTimeLocalExplode(PRTTIME pTime, PCRTTIMESPEC pTimeSpec)
137N/A{
137N/A pTime = RTTimeExplode(pTime, pTimeSpec);
137N/A if (pTime)
137N/A pTime->fFlags = (pTime->fFlags & ~RTTIME_FLAGS_TYPE_MASK) | RTTIME_FLAGS_TYPE_LOCAL;
137N/A return pTime;
137N/A}
137N/A
493N/A