This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.rak.tests; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Calendar; | |
import java.util.Date; | |
public class Application { | |
public static void main(String[] args){ | |
System.out.println(getTimeAgo("2017-04-23 12:41:00", "yyyy-MM-dd HH:mm:ss", (long) (5.5*60*60*1000))); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ak_toast_view_tag = 595; | |
var ak_toast_label_tag = 585; | |
extension UIWindow{ | |
func showToast(text: String){ | |
let v = getToastView(); | |
if v.superview != nil{ | |
v.removeFromSuperview(); | |
} | |
let label = getToastLabel(); |