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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/wtf/DateMath.h ('k') | third_party/WebKit/Source/wtf/Deque.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 "wtf/DateMath.h"
73 73
74 #include <limits.h>
75 #include <math.h>
76 #include <stdlib.h>
77 #include <time.h>
78 #include <algorithm>
79 #include <limits>
74 #include "wtf/ASCIICType.h" 80 #include "wtf/ASCIICType.h"
75 #include "wtf/Assertions.h" 81 #include "wtf/Assertions.h"
76 #include "wtf/CurrentTime.h" 82 #include "wtf/CurrentTime.h"
77 #include "wtf/MathExtras.h" 83 #include "wtf/MathExtras.h"
78 #include "wtf/StdLibExtras.h" 84 #include "wtf/StdLibExtras.h"
79 #include "wtf/StringExtras.h" 85 #include "wtf/StringExtras.h"
80 #include "wtf/text/StringBuilder.h" 86 #include "wtf/text/StringBuilder.h"
81 #include <algorithm>
82 #include <limits.h>
83 #include <limits>
84 #include <math.h>
85 #include <stdlib.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
91 #include <sys/time.h> 91 #include <sys/time.h>
92 #endif 92 #endif
93 93
94 namespace WTF { 94 namespace WTF {
95 95
96 /* Constants */ 96 /* Constants */
(...skipping 736 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/wtf/DateMath.h ('k') | third_party/WebKit/Source/wtf/Deque.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698