/system/tpm/attestation/common/ |
proto_print.py | 36 from datetime import date namespace 221 """ % {'year': date.today().year, 243 """ % {'year': date.today().year,
|
/libcore/ojluni/src/main/java/sun/security/util/ |
DerInputBuffer.java | 32 import java.util.Date; 254 public Date getUTCTime(int len) throws IOException { 269 public Date getGeneralizedTime(int len) throws IOException { 286 private Date getTime(int len, boolean generalized) throws IOException { 397 CalendarDate date = gcal.newCalendarDate(null); // no time zone local 398 date.setDate(year, month, day); 399 date.setTimeOfDay(hour, minute, second, millis); 400 long time = gcal.getTime(date); 441 return new Date(time);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
ReportExporter.java | 30 import java.util.Date; 94 String date = dateFormat.format(new Date()); local 96 + "-" + date
|
/cts/libs/vogar-expect/src/vogar/ |
Outcome.java | 23 import java.util.Date; 36 private final Date date; field in class:Outcome 42 this.date = new Date(); 45 public Outcome(String outcomeName, Result result, String outputLine, Date date) { 49 this.date = date; 56 this.date = new Date() [all...] |
/external/chromium-trace/catapult/third_party/flot/ |
jquery.flot.time.js | 28 // Returns a string with the date d formatted according to fmt. 107 // zone the client happens to be in we need a date-like object independent 120 date: d 132 var props = ["Date", "Day", "FullYear", "Hours", "Milliseconds", "Minutes", "Month", "Seconds"]; 142 // select time zone strategy. This returns a date-like object tied to the 147 return new Date(ts); 149 return makeUtcWrapper(new Date(ts)); 150 } else if (typeof timezoneJS != "undefined" && typeof timezoneJS.Date != "undefined") { 151 var d = new timezoneJS.Date(); 158 return makeUtcWrapper(new Date(ts)) [all...] |
jquery.flot.time.min.js | 7 (function($){var options={xaxis:{timezone:null,timeformat:null,twelveHourClock:false,monthNames:null}};function floorInBase(n,base){return base*Math.floor(n/base)}function formatDate(d,fmt,monthNames,dayNames){if(typeof d.strftime=="function"){return d.strftime(fmt)}var leftPad=function(n,pad){n=""+n;pad=""+(pad==null?"0":pad);return n.length==1?pad+n:n};var r=[];var escape=false;var hours=d.getHours();var isAM=hours<12;if(monthNames==null){monthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}if(dayNames==null){dayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}var hours12;if(hours>12){hours12=hours-12}else if(hours==0){hours12=12}else{hours12=hours}for(var i=0;i<fmt.length;++i){var c=fmt.charAt(i);if(escape){switch(c){case"a":c=""+dayNames[d.getDay()];break;case"b":c=""+monthNames[d.getMonth()];break;case"d":c=leftPad(d.getDate());break;case"e":c=leftPad(d.getDate()," ");break;case"h":case"H":c=leftPad(hours);break;case"I":c=leftPad(hours12);break;case"l":c=leftPad(hours12," ");break;case"m":c=leftPad(d.getMonth()+1);break;case"M":c=leftPad(d.getMinutes());break;case"q":c=""+(Math.floor(d.getMonth()/3)+1);break;case"S":c=leftPad(d.getSeconds());break;case"y":c=leftPad(d.getFullYear()%100);break;case"Y":c=""+d.getFullYear();break;case"p":c=isAM?""+"am":""+"pm";break;case"P":c=isAM?""+"AM":""+"PM";break;case"w":c=""+d.getDay();break}r.push(c);escape=false}else{if(c=="%"){escape=true}else{r.push(c)}}}return r.join("")}function makeUtcWrapper(d){function addProxyMethod(sourceObj,sourceMethod,targetObj,targetMethod){sourceObj[sourceMethod]=function(){return targetObj[targetMethod].apply(targetObj,arguments)}}var utc={date:d};if(d.strftime!=undefined){addProxyMethod(utc,"strftime",d,"strftime")}addProxyMethod(utc,"getTime",d,"getTime");addProxyMethod(utc,"setTime",d,"setTime");var props=["Date","Day","FullYear","Hours","Milliseconds","Minutes","Month","Seconds"];for(var p=0;p<props.length;p++){addProxyMethod(utc,"get"+props[p],d,"getUTC"+props[p]);addProxyMethod(utc,"set"+props[p],d,"setUTC"+props[p])}return utc}function dateGenerator(ts,opts){if(opts.timezone=="browser"){return new Date(ts)}else if(!opts.timezone||opts.timezone=="utc"){return makeUtcWrapper(new Date(ts))}else if(typeof timezoneJS!="undefined"&&typeof timezoneJS.Date!="undefined"){var d=new timezoneJS.Date;d.setTimezone(opts.timezone);d.setTime(ts);return d}else{return makeUtcWrapper(new Date(ts))}}var timeUnitSize={second:1e3,minute:60*1e3,hour:60*60*1e3,day:24*60*60*1e3,month:30*24*60*60 (…)
|
/external/chromium-trace/catapult/trace_processor/trace_uploader/ |
trace_info.py | 10 date = ndb.DateTimeProperty(auto_now_add=True, indexed=True) variable in class:TraceInfo
|
/external/clang/docs/ |
conf.py | 15 from datetime import date namespace 45 copyright = u'2007-%d, The Clang Team' % date.today().year
|
/external/icu/icu4j/perf-tests/src/com/ibm/icu/dev/test/perf/ |
DateFormatPerformanceTest.java | 10 import java.util.Date; 21 private Date date; field in class:DateFormatPerformanceTest 51 date = icuDateFormat[0].parse(dateString); 103 icuDateFormat[id].format(date); 111 jdkDateFormat[id].format(date);
|
/external/jcommander/src/test/java/com/beust/jcommander/args/ |
Args1Setter.java | 25 import java.util.Date; 87 @Parameter(names = "-date", description = "An ISO 8601 formatted date.") 88 public void setDate(Date d) { 89 date = d; 92 public Date date; field in class:Args1Setter
|
/external/libchrome/base/time/ |
time_mac.cc | 170 CFGregorianDate date; local 171 date.second = exploded.second + 173 date.minute = exploded.minute; 174 date.hour = exploded.hour; 175 date.day = exploded.day_of_month; 176 date.month = exploded.month; 177 date.year = exploded.year; 181 CFAbsoluteTime seconds = CFGregorianDateGetAbsoluteTime(date, time_zone) + 199 CFGregorianDate date = CFAbsoluteTimeGetGregorianDate(seconds, time_zone); local 203 exploded->year = date.year [all...] |
/external/snakeyaml/src/test/java/examples/jodatime/ |
JodaTimeExampleTest.java | 18 import java.util.Date; 40 String date = new Yaml().dump(new Date(timestamp)); local 41 assertEquals(date, joda); 55 Date someDate = new DateMidnight(9, 2, 21, DateTimeZone.forID("Europe/Amsterdam")).toDate(); 74 Date date = (Date) dateConstructor.construct(nnode); local 75 return new DateTime(date, DateTimeZone.UTC); 94 // Whenever we see an explicit timestamp tag, make a Joda Date 104 Date date = (Date) javaDateConstruct.construct(node); local [all...] |
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
TimestampTagTest.java | 19 import java.util.Date; 48 getText("date (00:00:00Z): 2002-12-14", "date (00:00:00Z)")); 62 assertTrue(getMapValue("canonical: !!timestamp 2001-12-15T02:59:43.1Z", "canonical") instanceof Date); 67 "canonical") instanceof Date); 74 Date date = cal.getTime(); local 75 String output = dump(date); 83 Date date = cal.getTime() local 91 Date date = (Date) getMapValue(yaml, key); local 109 Date date = (Date) getMapValue("Time: 2001-11-23 15:01:42 -5", "Time"); local 117 java.sql.Date date = new java.sql.Date(1000000000000L); local [all...] |
/external/v8/test/mjsunit/ |
to_number_order.js | 68 var date = { valueOf: function() { x += 3; return 4; } }; 75 new Date(year, month, date, hours, minutes, seconds, ms); 77 assertEquals("1234567", x, "Date"); 80 Date(year, month, date, hours, minutes, seconds, ms); 81 assertEquals("", x, "Date not constructor"); 84 Date.UTC(year, month, date, hours, minutes, seconds, ms); 86 assertEquals("1234567", x, "Date.UTC") [all...] |
/external/v8/test/webkit/ |
date-constructor.js | 25 'This test case tests the Date constructor. ' + 26 'In particular, it tests many cases of creating a Date from another Date ' + 27 'and creating a Date from an object that has both valueOf and toString functions.' 34 shouldBe('isNaN(new Date(""))', 'true'); 36 var timeZoneOffset = Date.parse("Dec 25 1995") - Date.parse("Dec 25 1995 GMT"); 38 shouldBe('new Date(1111).getTime()', '1111'); 39 shouldBe('new Date(object).getTime()', '1111'); 40 shouldBe('new Date(new Date(1111)).getTime()', '1111') [all...] |
/external/vogar/src/vogar/ |
Outcome.java | 23 import java.util.Date; 36 private final Date date; field in class:Outcome 42 this.date = new Date(); 45 public Outcome(String outcomeName, Result result, String outputLine, Date date) { 49 this.date = date; 56 this.date = new Date() [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
DocumentaryFilter.java | 28 import java.util.Date; 81 Date date = new Date(); local 82 mRandom = new Random(new Date().getTime());
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
TextViewWithCircularIndicator.java | 17 package com.android.datetimepicker.date;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
Support_SimpleDateFormat.java | 25 import java.util.Date; 53 Date date = cal.getTime(); local 75 t_FormatWithField(0, format, date, null, Field.ERA, 0, 2); 76 t_FormatWithField(1, format, date, null, Field.YEAR, 6, 10); 77 t_FormatWithField(2, format, date, null, Field.MONTH, 19, 20); 78 t_FormatWithField(3, format, date, null, Field.DAY_OF_MONTH, 38, 40); 79 t_FormatWithField(4, format, date, null, Field.HOUR_OF_DAY1, 48, 50); 80 t_FormatWithField(5, format, date, null, Field.HOUR_OF_DAY0, 58, 60); 81 t_FormatWithField(6, format, date, null, Field.HOUR1, 68, 69) 137 Date date = cal.getTime(); local [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
InvalidityDateExtension.java | 30 import java.util.Date; 38 * The invalidity date is a non-critical CRL entry extension that 39 * provides the date on which it is known or suspected that the private 41 * This date may be earlier than the revocation date in the CRL entry, 42 * which is the date at which the CA processed the revocation. When a 44 * date may precede the date of issue of earlier CRLs, but the 45 * revocation date SHOULD NOT precede the date of issue of earlier CRLs 69 private Date date; field in class:InvalidityDateExtension [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
WeekNumberTest.java | 33 public Time date; field in class:WeekNumberTest.DateAndWeekNumber 38 date = new Time(); 41 date.set(0, 0, 0, day, month, year); 42 date.normalize(true /* ignore isDst */); 209 int weekNumber = test.date.getWeekNumber(); 211 long millis = test.date.toMillis(false /* use isDst */); 215 + " date: " + output 223 long millis = test.date.toMillis(false /* use isDst */); 227 + " date: " + output
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
PanoUtil.java | 20 import java.util.Date; 24 Date date = new Date(dateTaken); local 26 return dateFormat.format(date);
|
/packages/services/Telephony/src/com/android/phone/ |
CallLogger.java | 59 final long date = c.getCreateTime(); local 83 logCall(ci, logNumber, presentation, callLogType, date, duration);
|
/system/webservd/webservd/ |
log_manager_unittest.cc | 99 tm date = {0, 0, 0, 25, 1, 115, 2, 55, 0}; local 100 base::Time timestamp = base::Time::FromTimeT(mktime(&date)); 125 tm date = {0, 0, 0, 25, 1, 115, 2, 55, 0}; local 126 base::Time timestamp = base::Time::FromTimeT(mktime(&date));
|
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/ |
ObjectViewer.java | 39 import java.util.Date; 142 Date date = new Date(info.getDateCreated() * 1000); local 143 view.setText(date.toString()); 145 date = new Date(info.getDateModified() * 1000); 146 view.setText(date.toString());
|