Share

Persian Calendar

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

a question about persian calendar

You are viewing a single message from this topic. View all messages.

  1. 2008-06-02 08:33:54 UTC
    Hi dear mr Kiani,
    I can't run this code which found in doc directory of persian calendar:
    import java.util.Date;
    import com.ibm.icu.util.TimeZone;
    import com.ibm.icu.util.ULocale;
    import com.ibm.icu.text.DateFormat;
    import com.ghasemkiani.util.icu.PersianCalendar;
    // ...
    PersianCalendar pc = new PersianCalendar(TimeZone.getTimeZone("Asia/Tehran"));
    DateFormat df = pc.getDateTimeFormat(DateFormat.FULL, DateFormat.DEFAULT, new ULocale("fa", "IR", ""));
    String result = df.format(new Date());
    // ...
    The error message is:
    The import com.ghasemkiani.util.icu.PersianCalendar conflicts with a type defined in the same file.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.