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

Side by Side Diff: sky/engine/wtf/DateMath.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/wtf/DateMath.h ('k') | sky/engine/wtf/DefaultAllocator.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 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 "config.h" 72 #include "sky/engine/config.h"
73 #include "DateMath.h" 73 #include "sky/engine/wtf/DateMath.h"
74 74
75 #include "Assertions.h" 75 #include "sky/engine/wtf/ASCIICType.h"
76 #include "ASCIICType.h" 76 #include "sky/engine/wtf/Assertions.h"
77 #include "CurrentTime.h" 77 #include "sky/engine/wtf/CurrentTime.h"
78 #include "MathExtras.h" 78 #include "sky/engine/wtf/MathExtras.h"
79 #include "StdLibExtras.h" 79 #include "sky/engine/wtf/StdLibExtras.h"
80 #include "StringExtras.h" 80 #include "sky/engine/wtf/StringExtras.h"
81 81
82 #include <algorithm>
83 #include <limits.h> 82 #include <limits.h>
84 #include <limits>
85 #include <math.h> 83 #include <math.h>
86 #include <stdlib.h> 84 #include <stdlib.h>
87 #include <time.h> 85 #include <time.h>
88 #include "wtf/text/StringBuilder.h" 86 #include <algorithm>
87 #include <limits>
88 #include "sky/engine/wtf/text/StringBuilder.h"
89 89
90 #if HAVE(SYS_TIME_H) 90 #if HAVE(SYS_TIME_H)
91 #include <sys/time.h> 91 #include <sys/time.h>
92 #endif 92 #endif
93 93
94 using namespace WTF; 94 using namespace WTF;
95 95
96 namespace WTF { 96 namespace WTF {
97 97
98 /* Constants */ 98 /* Constants */
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 } 818 }
819 819
820 double convertToLocalTime(double ms) 820 double convertToLocalTime(double ms)
821 { 821 {
822 double utcOffset = calculateUTCOffset(); 822 double utcOffset = calculateUTCOffset();
823 double dstOffset = calculateDSTOffset(ms, utcOffset); 823 double dstOffset = calculateDSTOffset(ms, utcOffset);
824 return (ms + utcOffset + dstOffset); 824 return (ms + utcOffset + dstOffset);
825 } 825 }
826 826
827 } // namespace WTF 827 } // namespace WTF
OLDNEW
« no previous file with comments | « sky/engine/wtf/DateMath.h ('k') | sky/engine/wtf/DefaultAllocator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698