Lines Matching defs:fmt

415     SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale("en_US@calendar=buddhist"), status);
419 if(!fmt) {
426 fmt->format(aDate, str);
432 UDate otherDate = fmt->parse(expected, status);
435 fmt->format(otherDate, str3);
440 delete fmt;
501 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yy G"), Locale("en_US@calendar=japanese"), status);
504 if(!fmt) {
511 fmt->format(aDate, str);
517 UDate otherDate = fmt->parse(expected, status);
521 fmt->parse(expected, *cal2, pp);
522 fmt->format(otherDate, str3);
528 delete fmt;
532 fmt = new SimpleDateFormat(UnicodeString("G y"), Locale("en_US@calendar=japanese"), status);
535 if(!fmt) {
542 fmt->format(aDate, str);
548 UDate otherDate = fmt->parse(expected, status);
552 fmt->parse(expected, *cal2, pp);
553 fmt->format(otherDate, str3);
559 delete fmt;
630 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("y.M.d"), Locale("ja_JP@calendar=japanese"), status);
632 if(!fmt) {
639 aDate = fmt->parse(samplestr, s2);
641 fmt->parse(samplestr, *cal2, pp);
659 delete fmt;
670 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("y"), Locale("ja_JP@calendar=japanese"), status);
672 if(!fmt) {
679 aDate = fmt->parse(samplestr, s2);
681 fmt->parse(samplestr, *cal2, pp);
699 delete fmt;
834 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("MMMM d, yyyy G"), Locale(" en_US@calendar=persian"), status);
840 if(!fmt) {
844 fmt->format(aDate, str);
850 UDate otherDate = fmt->parse(expected, status);
853 fmt->format(otherDate, str3);
859 fmt->applyPattern("yy-MM-dd");
861 fmt->format(aDate, str);
866 otherDate = fmt->parse(expected, status);
872 delete fmt;