Skip to content

Instantly share code, notes, and snippets.

@morphine9
morphine9 / AnimateCounter.java
Last active March 16, 2016 18:07 — forked from bmarrdev/AnimateCounter.java
AnimateCounter provides ability to animate the counting of numbers using the builtin Android Interpolator animation functionality.
/*
* Copyright (C) 2015 Hooked On Play
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
/*
* Copyright (C) 2014 Chris Banes
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@morphine9
morphine9 / Java Date
Last active December 12, 2015 08:59
ISO 8601 Java Code conversion
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
System.out.println("Current time : " + sdf.format(System.currentTimeMillis()));
// Current time : 2013-02-10T01:12:31.586Z
try {
System.out.println(" From USO 8601 to human readable : "
+ sdf.parse("2013-02-10T01:12:31.586Z").toString());
} catch (ParseException exception) {
exception.printStackTrace();
}