apkfuckery/com.discord/smali/com/bugsnag/android/DateUtils.smali
2019-02-04 21:05:16 +01:00

60 lines
1.4 KiB
Smali

.class Lcom/bugsnag/android/DateUtils;
.super Ljava/lang/Object;
.source "DateUtils.java"
# static fields
.field private static final iso8601Holder:Ljava/lang/ThreadLocal;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/ThreadLocal",
"<",
"Ljava/text/DateFormat;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.locals 1
.prologue
new-instance v0, Lcom/bugsnag/android/DateUtils$1;
invoke-direct {v0}, Lcom/bugsnag/android/DateUtils$1;-><init>()V
sput-object v0, Lcom/bugsnag/android/DateUtils;->iso8601Holder:Ljava/lang/ThreadLocal;
return-void
.end method
.method constructor <init>()V
.locals 0
.prologue
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static toISO8601(Ljava/util/Date;)Ljava/lang/String;
.locals 1
.param p0, "date" # Ljava/util/Date;
.prologue
sget-object v0, Lcom/bugsnag/android/DateUtils;->iso8601Holder:Ljava/lang/ThreadLocal;
invoke-virtual {v0}, Ljava/lang/ThreadLocal;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/text/DateFormat;
invoke-virtual {v0, p0}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method