Code example for TimeZone

Methods: setDefault

0
     * Format and return the given {@link Blocks} and {@link Rooms} values using 
     * {@link #CONFERENCE_TIME_ZONE}. 
     */ 
    public static Spanned formatSessionSubtitle(long blockStart, long blockEnd,
            String roomName, Context context) {
        TimeZone.setDefault(CONFERENCE_TIME_ZONE);
 
        // NOTE: There is an efficient version of formatDateRange in Eclair and 
        // beyond that allows you to recycle a StringBuilder. 
        final CharSequence timeString = DateUtils.formatDateRange(context,
                blockStart, blockEnd, TIME_FLAGS);
         
        // can be returned by devoxx api 
        if (roomName == null || roomName == "null"){
        	roomName = "N/A";
        } 
        return Html.fromHtml(timeString +" @ <u><b>" + roomName + "</b></u>");
    } 
 
    /**