Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: third_party/WebKit/Source/platform/wtf/DateMath.cpp

Issue 2767153004: Move files in wtf/ to platform/wtf/ (Part 12). (Closed)
Patch Set: Rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) 2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * Copyright (C) 2007-2009 Torch Mobile, Inc. 5 * Copyright (C) 2007-2009 Torch Mobile, Inc.
6 * Copyright (C) 2010 &yet, LLC. (nate@andyet.net) 6 * Copyright (C) 2010 &yet, LLC. (nate@andyet.net)
7 * 7 *
8 * The Original Code is Mozilla Communicator client code, released 8 * The Original Code is Mozilla Communicator client code, released
9 * March 31, 1998. 9 * March 31, 1998.
10 * 10 *
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 62 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
63 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 63 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
64 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 64 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
65 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 65 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
66 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 66 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
67 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 67 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
68 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 68 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
69 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 69 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
70 */ 70 */
71 71
72 #include "wtf/DateMath.h" 72 #include "platform/wtf/DateMath.h"
73 73
74 #include "wtf/ASCIICType.h" 74 #include "platform/wtf/ASCIICType.h"
75 #include "wtf/Assertions.h" 75 #include "platform/wtf/Assertions.h"
76 #include "wtf/CurrentTime.h" 76 #include "platform/wtf/CurrentTime.h"
77 #include "wtf/MathExtras.h" 77 #include "platform/wtf/MathExtras.h"
78 #include "wtf/StdLibExtras.h" 78 #include "platform/wtf/StdLibExtras.h"
79 #include "wtf/StringExtras.h" 79 #include "platform/wtf/StringExtras.h"
80 #include "wtf/text/StringBuilder.h" 80 #include "platform/wtf/text/StringBuilder.h"
81 #include <algorithm> 81 #include <algorithm>
82 #include <limits.h> 82 #include <limits.h>
83 #include <limits> 83 #include <limits>
84 #include <math.h> 84 #include <math.h>
85 #include <stdlib.h> 85 #include <stdlib.h>
86 #include <time.h> 86 #include <time.h>
87 87
88 #if OS(WIN) 88 #if OS(WIN)
89 #include <windows.h> 89 #include <windows.h>
90 #else 90 #else
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 return stringBuilder.toString(); 833 return stringBuilder.toString();
834 } 834 }
835 835
836 double convertToLocalTime(double ms) { 836 double convertToLocalTime(double ms) {
837 double utcOffset = calculateUTCOffset(); 837 double utcOffset = calculateUTCOffset();
838 double dstOffset = calculateDSTOffset(ms, utcOffset); 838 double dstOffset = calculateDSTOffset(ms, utcOffset);
839 return (ms + utcOffset + dstOffset); 839 return (ms + utcOffset + dstOffset);
840 } 840 }
841 841
842 } // namespace WTF 842 } // namespace WTF
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/wtf/DateMath.h ('k') | third_party/WebKit/Source/platform/wtf/FilePrintStream.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698