public final class com.google.protobuf.util.Timestamps
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.google.protobuf.util.Timestamps
super_class: java.lang.Object
{
static final long TIMESTAMP_SECONDS_MIN;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -62135596800
static final long TIMESTAMP_SECONDS_MAX;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 253402300799
static final long NANOS_PER_SECOND;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1000000000
static final long NANOS_PER_MILLISECOND;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1000000
static final long NANOS_PER_MICROSECOND;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1000
static final long MILLIS_PER_SECOND;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1000
static final long MICROS_PER_SECOND;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1000000
public static final com.google.protobuf.Timestamp MIN_VALUE;
descriptor: Lcom/google/protobuf/Timestamp;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final com.google.protobuf.Timestamp MAX_VALUE;
descriptor: Lcom/google/protobuf/Timestamp;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final com.google.protobuf.Timestamp EPOCH;
descriptor: Lcom/google/protobuf/Timestamp;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.lang.ThreadLocal<java.text.SimpleDateFormat> timestampFormat;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/lang/ThreadLocal<Ljava/text/SimpleDateFormat;>;
private static final java.util.Comparator<com.google.protobuf.Timestamp> COMPARATOR;
descriptor: Ljava/util/Comparator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Comparator<Lcom/google/protobuf/Timestamp;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: invokestatic com.google.protobuf.Timestamp.newBuilder:()Lcom/google/protobuf/Timestamp$Builder;
ldc -62135596800
invokevirtual com.google.protobuf.Timestamp$Builder.setSeconds:(J)Lcom/google/protobuf/Timestamp$Builder;
iconst_0
invokevirtual com.google.protobuf.Timestamp$Builder.setNanos:(I)Lcom/google/protobuf/Timestamp$Builder;
invokevirtual com.google.protobuf.Timestamp$Builder.build:()Lcom/google/protobuf/Timestamp;
1: putstatic com.google.protobuf.util.Timestamps.MIN_VALUE:Lcom/google/protobuf/Timestamp;
2: invokestatic com.google.protobuf.Timestamp.newBuilder:()Lcom/google/protobuf/Timestamp$Builder;
ldc 253402300799
invokevirtual com.google.protobuf.Timestamp$Builder.setSeconds:(J)Lcom/google/protobuf/Timestamp$Builder;
ldc 999999999
invokevirtual com.google.protobuf.Timestamp$Builder.setNanos:(I)Lcom/google/protobuf/Timestamp$Builder;
invokevirtual com.google.protobuf.Timestamp$Builder.build:()Lcom/google/protobuf/Timestamp;
3: putstatic com.google.protobuf.util.Timestamps.MAX_VALUE:Lcom/google/protobuf/Timestamp;
4: invokestatic com.google.protobuf.Timestamp.newBuilder:()Lcom/google/protobuf/Timestamp$Builder;
lconst_0
invokevirtual com.google.protobuf.Timestamp$Builder.setSeconds:(J)Lcom/google/protobuf/Timestamp$Builder;
iconst_0
invokevirtual com.google.protobuf.Timestamp$Builder.setNanos:(I)Lcom/google/protobuf/Timestamp$Builder;
invokevirtual com.google.protobuf.Timestamp$Builder.build:()Lcom/google/protobuf/Timestamp;
putstatic com.google.protobuf.util.Timestamps.EPOCH:Lcom/google/protobuf/Timestamp;
5: new com.google.protobuf.util.Timestamps$1
dup
invokespecial com.google.protobuf.util.Timestamps$1.<init>:()V
6: putstatic com.google.protobuf.util.Timestamps.timestampFormat:Ljava/lang/ThreadLocal;
7: new com.google.protobuf.util.Timestamps$2
dup
invokespecial com.google.protobuf.util.Timestamps$2.<init>:()V
8: putstatic com.google.protobuf.util.Timestamps.COMPARATOR:Ljava/util/Comparator;
9: return
LocalVariableTable:
Start End Slot Name Signature
private static java.text.SimpleDateFormat createTimestampFormat();
descriptor: ()Ljava/text/SimpleDateFormat;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=2, args_size=0
0: new java.text.SimpleDateFormat
dup
ldc "yyyy-MM-dd'T'HH:mm:ss"
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokespecial java.text.SimpleDateFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
astore 0
start local 0 1: new java.util.GregorianCalendar
dup
ldc "UTC"
invokestatic java.util.TimeZone.getTimeZone:(Ljava/lang/String;)Ljava/util/TimeZone;
invokespecial java.util.GregorianCalendar.<init>:(Ljava/util/TimeZone;)V
astore 1
start local 1 2: aload 1
new java.util.Date
dup
ldc -9223372036854775808
invokespecial java.util.Date.<init>:(J)V
invokevirtual java.util.GregorianCalendar.setGregorianChange:(Ljava/util/Date;)V
3: aload 0
aload 1
invokevirtual java.text.SimpleDateFormat.setCalendar:(Ljava/util/Calendar;)V
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 sdf Ljava/text/SimpleDateFormat;
2 5 1 calendar Ljava/util/GregorianCalendar;
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/protobuf/util/Timestamps;
public static java.util.Comparator<com.google.protobuf.Timestamp> comparator();
descriptor: ()Ljava/util/Comparator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.google.protobuf.util.Timestamps.COMPARATOR:Ljava/util/Comparator;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Comparator<Lcom/google/protobuf/Timestamp;>;
public static int compare(com.google.protobuf.Timestamp, com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;Lcom/google/protobuf/Timestamp;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.google.protobuf.util.Timestamps.COMPARATOR:Ljava/util/Comparator;
aload 0
aload 1
invokeinterface java.util.Comparator.compare:(Ljava/lang/Object;Ljava/lang/Object;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 x Lcom/google/protobuf/Timestamp;
0 1 1 y Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
x
y
public static boolean isValid(com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
invokestatic com.google.protobuf.util.Timestamps.isValid:(JI)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 timestamp Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
timestamp
public static boolean isValid(long, int);
descriptor: (JI)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 2 0: lload 0
ldc -62135596800
lcmp
iflt 1
lload 0
ldc 253402300799
lcmp
ifle 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iload 2
iflt 3
iload 2
i2l
ldc 1000000000
lcmp
iflt 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 seconds J
0 5 2 nanos I
MethodParameters:
Name Flags
seconds
nanos
public static com.google.protobuf.Timestamp checkValid(com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
lstore 1
start local 1 1: aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
istore 3
start local 3 2: lload 1
iload 3
invokestatic com.google.protobuf.util.Timestamps.isValid:(JI)Z
ifne 8
3: new java.lang.IllegalArgumentException
dup
4: ldc "Timestamp is not valid. See proto definition for valid values. Seconds (%s) must be in range [-62,135,596,800, +253,402,300,799]. Nanos (%s) must be in range [0, +999,999,999]."
iconst_2
anewarray java.lang.Object
dup
iconst_0
5: lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
6: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
7: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals: long int
StackMap stack:
aload 0
areturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 timestamp Lcom/google/protobuf/Timestamp;
1 9 1 seconds J
2 9 3 nanos I
RuntimeInvisibleAnnotations:
com.google.errorprone.annotations.CanIgnoreReturnValue()
MethodParameters:
Name Flags
timestamp
public static com.google.protobuf.Timestamp checkValid(com.google.protobuf.Timestamp$Builder);
descriptor: (Lcom/google/protobuf/Timestamp$Builder;)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual com.google.protobuf.Timestamp$Builder.build:()Lcom/google/protobuf/Timestamp;
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 timestampBuilder Lcom/google/protobuf/Timestamp$Builder;
MethodParameters:
Name Flags
timestampBuilder
public static java.lang.String toString(com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
1: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
lstore 1
start local 1 2: aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
istore 3
start local 3 3: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 4: new java.util.Date
dup
lload 1
ldc 1000
lmul
invokespecial java.util.Date.<init>:(J)V
astore 5
start local 5 5: aload 4
getstatic com.google.protobuf.util.Timestamps.timestampFormat:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.text.SimpleDateFormat
aload 5
invokevirtual java.text.SimpleDateFormat.format:(Ljava/util/Date;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: iload 3
ifeq 9
7: aload 4
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 4
iload 3
invokestatic com.google.protobuf.util.Timestamps.formatNanos:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: StackMap locals: com.google.protobuf.Timestamp long int java.lang.StringBuilder java.util.Date
StackMap stack:
aload 4
ldc "Z"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 timestamp Lcom/google/protobuf/Timestamp;
2 11 1 seconds J
3 11 3 nanos I
4 11 4 result Ljava/lang/StringBuilder;
5 11 5 date Ljava/util/Date;
MethodParameters:
Name Flags
timestamp
public static com.google.protobuf.Timestamp parse(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=14, args_size=1
start local 0 0: aload 0
bipush 84
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpne 3
2: new java.text.ParseException
dup
new java.lang.StringBuilder
dup
ldc "Failed to parse timestamp: invalid timestamp \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
bipush 90
iload 1
invokevirtual java.lang.String.indexOf:(II)I
istore 2
start local 2 4: iload 2
iconst_m1
if_icmpne 6
5: aload 0
bipush 43
iload 1
invokevirtual java.lang.String.indexOf:(II)I
istore 2
6: StackMap locals: int
StackMap stack:
iload 2
iconst_m1
if_icmpne 8
7: aload 0
bipush 45
iload 1
invokevirtual java.lang.String.indexOf:(II)I
istore 2
8: StackMap locals:
StackMap stack:
iload 2
iconst_m1
if_icmpne 10
9: new java.text.ParseException
dup
ldc "Failed to parse timestamp: missing valid timezone offset."
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
athrow
10: StackMap locals:
StackMap stack:
aload 0
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 11: aload 3
astore 4
start local 4 12: ldc ""
astore 5
start local 5 13: aload 3
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
istore 6
start local 6 14: iload 6
iconst_m1
if_icmpeq 17
15: aload 3
iconst_0
iload 6
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
16: aload 3
iload 6
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 5
17: StackMap locals: java.lang.String int int java.lang.String java.lang.String java.lang.String int
StackMap stack:
getstatic com.google.protobuf.util.Timestamps.timestampFormat:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
checkcast java.text.SimpleDateFormat
aload 4
invokevirtual java.text.SimpleDateFormat.parse:(Ljava/lang/String;)Ljava/util/Date;
astore 7
start local 7 18: aload 7
invokevirtual java.util.Date.getTime:()J
ldc 1000
ldiv
lstore 8
start local 8 19: aload 5
invokevirtual java.lang.String.isEmpty:()Z
ifeq 20
iconst_0
goto 21
StackMap locals: java.util.Date long
StackMap stack:
20: aload 5
invokestatic com.google.protobuf.util.Timestamps.parseNanos:(Ljava/lang/String;)I
StackMap locals:
StackMap stack: int
21: istore 10
start local 10 22: aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 90
if_icmpne 31
23: aload 0
invokevirtual java.lang.String.length:()I
iload 2
iconst_1
iadd
if_icmpeq 37
24: new java.text.ParseException
dup
25: new java.lang.StringBuilder
dup
ldc "Failed to parse timestamp: invalid trailing data \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
26: aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
27: ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
28: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
29: iconst_0
30: invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
athrow
31: StackMap locals: int
StackMap stack:
aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 11
start local 11 32: aload 11
invokestatic com.google.protobuf.util.Timestamps.parseTimezoneOffset:(Ljava/lang/String;)J
lstore 12
start local 12 33: aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 43
if_icmpne 36
34: lload 8
lload 12
lsub
lstore 8
35: goto 37
36: StackMap locals: java.lang.String long
StackMap stack:
lload 8
lload 12
ladd
lstore 8
end local 12 end local 11 37: StackMap locals:
StackMap stack:
lload 8
iload 10
invokestatic com.google.protobuf.util.Timestamps.normalizedTimestamp:(JI)Lcom/google/protobuf/Timestamp;
38: areturn
39: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
pop
40: new java.text.ParseException
dup
ldc "Failed to parse timestamp: timestamp is out of range."
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
athrow
end local 10 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 value Ljava/lang/String;
1 41 1 dayOffset I
4 41 2 timezoneOffsetPosition I
11 41 3 timeValue Ljava/lang/String;
12 41 4 secondValue Ljava/lang/String;
13 41 5 nanoValue Ljava/lang/String;
14 41 6 pointPosition I
18 41 7 date Ljava/util/Date;
19 41 8 seconds J
22 41 10 nanos I
32 37 11 offsetValue Ljava/lang/String;
33 37 12 offset J
Exception table:
from to target type
37 38 39 Class java.lang.IllegalArgumentException
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
value
public static com.google.protobuf.Timestamp fromSeconds(long);
descriptor: (J)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: lload 0
iconst_0
invokestatic com.google.protobuf.util.Timestamps.normalizedTimestamp:(JI)Lcom/google/protobuf/Timestamp;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 seconds J
MethodParameters:
Name Flags
seconds
public static long toSeconds(com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 timestamp Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
timestamp
public static com.google.protobuf.Timestamp fromMillis(long);
descriptor: (J)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
ldc 1000
ldiv
1: lload 0
ldc 1000
lrem
ldc 1000000
lmul
l2i
2: invokestatic com.google.protobuf.util.Timestamps.normalizedTimestamp:(JI)Lcom/google/protobuf/Timestamp;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 milliseconds J
MethodParameters:
Name Flags
milliseconds
public static long toMillis(com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
1: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
ldc 1000
invokestatic com.google.common.math.LongMath.checkedMultiply:(JJ)J
2: aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
i2l
ldc 1000000
ldiv
3: invokestatic com.google.common.math.LongMath.checkedAdd:(JJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 timestamp Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
timestamp
public static com.google.protobuf.Timestamp fromMicros(long);
descriptor: (J)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
ldc 1000000
ldiv
1: lload 0
ldc 1000000
lrem
ldc 1000
lmul
l2i
2: invokestatic com.google.protobuf.util.Timestamps.normalizedTimestamp:(JI)Lcom/google/protobuf/Timestamp;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 microseconds J
MethodParameters:
Name Flags
microseconds
public static long toMicros(com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
1: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
ldc 1000000
invokestatic com.google.common.math.LongMath.checkedMultiply:(JJ)J
2: aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
i2l
ldc 1000
ldiv
3: invokestatic com.google.common.math.LongMath.checkedAdd:(JJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 timestamp Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
timestamp
public static com.google.protobuf.Timestamp fromNanos(long);
descriptor: (J)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
ldc 1000000000
ldiv
lload 0
ldc 1000000000
lrem
l2i
1: invokestatic com.google.protobuf.util.Timestamps.normalizedTimestamp:(JI)Lcom/google/protobuf/Timestamp;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 nanoseconds J
MethodParameters:
Name Flags
nanoseconds
public static long toNanos(com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
1: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
ldc 1000000000
invokestatic com.google.common.math.LongMath.checkedMultiply:(JJ)J
aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
i2l
2: invokestatic com.google.common.math.LongMath.checkedAdd:(JJ)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 timestamp Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
timestamp
public static com.google.protobuf.Duration between(com.google.protobuf.Timestamp, com.google.protobuf.Timestamp);
descriptor: (Lcom/google/protobuf/Timestamp;Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Duration;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
1: aload 1
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
2: aload 1
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
invokestatic com.google.common.math.LongMath.checkedSubtract:(JJ)J
3: aload 1
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
invokestatic com.google.common.math.IntMath.checkedSubtract:(II)I
4: invokestatic com.google.protobuf.util.Durations.normalizedDuration:(JI)Lcom/google/protobuf/Duration;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 from Lcom/google/protobuf/Timestamp;
0 5 1 to Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
from
to
public static com.google.protobuf.Timestamp add(com.google.protobuf.Timestamp, com.google.protobuf.Duration);
descriptor: (Lcom/google/protobuf/Timestamp;Lcom/google/protobuf/Duration;)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
1: aload 1
invokestatic com.google.protobuf.util.Durations.checkValid:(Lcom/google/protobuf/Duration;)Lcom/google/protobuf/Duration;
pop
2: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
aload 1
invokevirtual com.google.protobuf.Duration.getSeconds:()J
invokestatic com.google.common.math.LongMath.checkedAdd:(JJ)J
3: aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
aload 1
invokevirtual com.google.protobuf.Duration.getNanos:()I
invokestatic com.google.common.math.IntMath.checkedAdd:(II)I
4: invokestatic com.google.protobuf.util.Timestamps.normalizedTimestamp:(JI)Lcom/google/protobuf/Timestamp;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 start Lcom/google/protobuf/Timestamp;
0 5 1 length Lcom/google/protobuf/Duration;
MethodParameters:
Name Flags
start
length
public static com.google.protobuf.Timestamp subtract(com.google.protobuf.Timestamp, com.google.protobuf.Duration);
descriptor: (Lcom/google/protobuf/Timestamp;Lcom/google/protobuf/Duration;)Lcom/google/protobuf/Timestamp;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
pop
1: aload 1
invokestatic com.google.protobuf.util.Durations.checkValid:(Lcom/google/protobuf/Duration;)Lcom/google/protobuf/Duration;
pop
2: aload 0
invokevirtual com.google.protobuf.Timestamp.getSeconds:()J
aload 1
invokevirtual com.google.protobuf.Duration.getSeconds:()J
invokestatic com.google.common.math.LongMath.checkedSubtract:(JJ)J
3: aload 0
invokevirtual com.google.protobuf.Timestamp.getNanos:()I
aload 1
invokevirtual com.google.protobuf.Duration.getNanos:()I
invokestatic com.google.common.math.IntMath.checkedSubtract:(II)I
4: invokestatic com.google.protobuf.util.Timestamps.normalizedTimestamp:(JI)Lcom/google/protobuf/Timestamp;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 start Lcom/google/protobuf/Timestamp;
0 5 1 length Lcom/google/protobuf/Duration;
MethodParameters:
Name Flags
start
length
static com.google.protobuf.Timestamp normalizedTimestamp(long, int);
descriptor: (JI)Lcom/google/protobuf/Timestamp;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 2 0: iload 2
i2l
ldc -1000000000
lcmp
ifle 1
iload 2
i2l
ldc 1000000000
lcmp
iflt 3
1: StackMap locals:
StackMap stack:
lload 0
iload 2
i2l
ldc 1000000000
ldiv
invokestatic com.google.common.math.LongMath.checkedAdd:(JJ)J
lstore 0
2: iload 2
i2l
ldc 1000000000
lrem
l2i
istore 2
3: StackMap locals:
StackMap stack:
iload 2
ifge 7
4: iload 2
i2l
ldc 1000000000
ladd
l2i
5: istore 2
6: lload 0
lconst_1
invokestatic com.google.common.math.LongMath.checkedSubtract:(JJ)J
lstore 0
7: StackMap locals:
StackMap stack:
invokestatic com.google.protobuf.Timestamp.newBuilder:()Lcom/google/protobuf/Timestamp$Builder;
lload 0
invokevirtual com.google.protobuf.Timestamp$Builder.setSeconds:(J)Lcom/google/protobuf/Timestamp$Builder;
iload 2
invokevirtual com.google.protobuf.Timestamp$Builder.setNanos:(I)Lcom/google/protobuf/Timestamp$Builder;
invokevirtual com.google.protobuf.Timestamp$Builder.build:()Lcom/google/protobuf/Timestamp;
astore 3
start local 3 8: aload 3
invokestatic com.google.protobuf.util.Timestamps.checkValid:(Lcom/google/protobuf/Timestamp;)Lcom/google/protobuf/Timestamp;
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 seconds J
0 9 2 nanos I
8 9 3 timestamp Lcom/google/protobuf/Timestamp;
MethodParameters:
Name Flags
seconds
nanos
private static long parseTimezoneOffset(java.lang.String);
descriptor: (Ljava/lang/String;)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: iload 1
iconst_m1
if_icmpne 3
2: new java.text.ParseException
dup
new java.lang.StringBuilder
dup
ldc "Invalid offset value: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
start local 2 4: aload 0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 5: aload 2
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
ldc 60
lmul
aload 3
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
ladd
ldc 60
lmul
lreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 value Ljava/lang/String;
1 6 1 pos I
4 6 2 hours Ljava/lang/String;
5 6 3 minutes Ljava/lang/String;
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
value
static int parseNanos(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 9
3: StackMap locals: int int
StackMap stack:
iload 1
bipush 10
imul
istore 1
4: iload 2
aload 0
invokevirtual java.lang.String.length:()I
if_icmpge 8
5: aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 48
if_icmplt 6
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 57
if_icmple 7
6: StackMap locals:
StackMap stack:
new java.text.ParseException
dup
ldc "Invalid nanoseconds."
iconst_0
invokespecial java.text.ParseException.<init>:(Ljava/lang/String;I)V
athrow
7: StackMap locals:
StackMap stack:
iload 1
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 48
isub
iadd
istore 1
8: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
bipush 9
if_icmplt 3
end local 2 10: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 value Ljava/lang/String;
1 11 1 result I
2 10 2 i I
Exceptions:
throws java.text.ParseException
MethodParameters:
Name Flags
value
static java.lang.String formatNanos(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=9, locals=1, args_size=1
start local 0 0: iload 0
i2l
ldc 1000000
lrem
lconst_0
lcmp
ifne 2
1: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
ldc "%1$03d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 0
i2l
ldc 1000000
ldiv
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
iload 0
i2l
ldc 1000
lrem
lconst_0
lcmp
ifne 4
3: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
ldc "%1$06d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 0
i2l
ldc 1000
ldiv
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokestatic java.lang.String.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
ldc "%1$09d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 0
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 nanos I
MethodParameters:
Name Flags
nanos
}
SourceFile: "Timestamps.java"
NestMembers:
com.google.protobuf.util.Timestamps$1 com.google.protobuf.util.Timestamps$2
InnerClasses:
public final Builder = com.google.protobuf.Timestamp$Builder of com.google.protobuf.Timestamp
com.google.protobuf.util.Timestamps$1
com.google.protobuf.util.Timestamps$2