()
| 108 | } |
| 109 | |
| 110 | public static String utcTime() { |
| 111 | long date=utcTimeMillis(); |
| 112 | c.setTime(new Date(date)); |
| 113 | return String.valueOf(c.get(Calendar.YEAR)) + |
| 114 | '-' + lz2(c.get(Calendar.MONTH)+1) + |
| 115 | '-' + lz2(c.get(Calendar.DAY_OF_MONTH)) + |
| 116 | 'T' + lz2(c.get(Calendar.HOUR_OF_DAY))+':'+lz2(c.get(Calendar.MINUTE))+':'+lz2(c.get(Calendar.SECOND)) + |
| 117 | 'Z'; |
| 118 | } |
| 119 | |
| 120 | public static String tzOffset(){ |
| 121 | StringBuffer tz=new StringBuffer(); |
no test coverage detected