how can i convert and print the current time/date based on the Shamsi
calendar!
i mean if the user type : "12th of july 2012" change it to based time on Shamsi ?
and what is the code that can get the current time!!! (from PC or other ways!!!)
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
how can i convert and print the current time/date based on the Shamsi
calendar!
i mean if the user type : "12th of july 2012" change it to based time on Shamsi ?
and what is the code that can get the current time!!! (from PC or other ways!!!)
Shamsi?
If you don't understand my answer, don't ignore it, ask a question.
Have you looked at the Locale class?
If you don't understand my answer, don't ignore it, ask a question.
Sorry, I have no idea what you are trying to do.
If you don't understand my answer, don't ignore it, ask a question.
Hello
in Iran the calendars write based on the solar year that called "Shamsi calendar ".for example year 2012 in Gregorian calendar equal to year 1391.
now I want to write a program in java with SimpleDateFormat, that when String Pattern = "*yyyy.MM.dd HH:mm:ss"; String Date = "2000.12.07 02:08:56";
If a pattern begins with the letter “*”, convert and print the current time/date based on the Shamsi calendar!
can you help me?
thank
--- Update ---
The other question is: who we can get two line input from command line argument and then change line to two String?
for example:
in command line argument:
abcdef
ghijk
then in Main:
String a="abcdef";
String b="ghijk";
thank
The arguments on the command line are passed to the main(String[] args) method in its String array argument: argsinput from command line argument
If you don't understand my answer, don't ignore it, ask a question.
it means some thing like this?
String a= args[0];
String b = args[1];
Yes, that would copy two String references from the args array to some other variables.
If you don't understand my answer, don't ignore it, ask a question.
OH!yes it worked
thank you
--- Update ---
And do you have any idea about Shamsi calendar ?
do you get what is it?
Try asking on google. Someone must have done that before.
If you don't understand my answer, don't ignore it, ask a question.