Java date and time zone Java
If not obtained the correct time with Java, you may not have been taken into account the setting of the zone.
If that were the case, use the following code:
-Gets the date, time and format for a given zone-
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java . util.Date;
java.util.TimeZone import;
/ **
* * @ author Ing.Oscar
Hurtado
* / public class
Main {/ ** * @ param args
the command
line arguments * /
public static void main (String [] args) {
/ / TODO code application logic here Main
orq = new Main ();
dte = orq.getDateTime String ();
System.out.println (DTE);}
GetDateTime public String () {DateFormat dateFormat =
new SimpleDateFormat ("yyyy / MM / dd HH: mm: ss");
/ / DateFormat dateFormat = new SimpleDateFormat ("HH: mm: ss");
/ / To see that IDS are available, uncomment the following
/ *
String [] avail = TimeZone.getAvailableIDs ();
for (int c = 0; c < avail.length; c++) {
System.out.println (avail [c]);}
* /
/ / it sets the ID for the area, in this case to 'La Paz Bolivia'
TimeZone.getTimeZone TimeZone est = ("America / La_Paz");
dateFormat.setTimeZone (est);
date Date = new Date ();
dateFormat.format return (date);
}}
Wednesday, March 16, 2011
Thursday, February 10, 2011
Can Implantation Happen Twice
CONCENTRATION OF SUPPORT TO SIMONE AND ISABELLA
Concentration few days ago we told you the story of Simone http://asociaciondamahervas.blogspot.com/2011/01/matan-sus-perros-y-ahora- quieren.html le
The trial has already been and the sentence is this: 5 years for Simone and 4 years and 6 months for Isabel. Le
kill three dogs in the Kennel damn Puerto Real, passes 72 hours in jail, 2 months in "El Puerto II" and now ask 5 years in prison.
All this ordeal because they think something that can not prove, that tried to attack the Mayor.
In 2007, over two thousand people demonstrated for the kennel Horrors of Puerto Real, Cadiz! Today Simone and Isabella need us.
Attend to demand justice. No one can spend 5 years of his life in prison for attempted assault, no matter who is mayor.
The SUPREME COURT HAS TO AMEND THIS
SETENCIA Aberration
ACUDE, NEED YOU, YOU MIGHT CALL YOU
:
PRODEN
Cádiz Bay Coordinating Committee for animal dignity CORA-ANIMAL
The Bright Eyes Society
Saturday, February 19 · 12:00 to 13:30
PLAZA DE SAN JUAN DE DIOS (CADIZ) More info
http://www.publico.es/espana/360544/solo-grite-mi-dolor-habian-matado-a-mi-familia
; http://www.elpais.com/articulo/ultima/Delirante/elpepuopi/20110208elpepiult_1/Tes
;
Concentration
support and Isabella Simone
The trial has already been and the sentence is this: 5 years for Simone and 4 years and 6 months for Isabel. Le
kill three dogs in the Kennel damn Puerto Real, passes 72 hours in jail, 2 months in "El Puerto II" and now ask 5 years in prison.
All this ordeal because they think something that can not prove, that tried to attack the Mayor.
In 2007, over two thousand people demonstrated for the kennel Horrors of Puerto Real, Cadiz! Today Simone and Isabella need us.
Attend to demand justice. No one can spend 5 years of his life in prison for attempted assault, no matter who is mayor.
The SUPREME COURT HAS TO AMEND THIS
SETENCIA Aberration
ACUDE, NEED YOU, YOU MIGHT CALL YOU
:
PRODEN
Cádiz Bay Coordinating Committee for animal dignity CORA-ANIMAL
The Bright Eyes Society
Saturday, February 19 · 12:00 to 13:30
PLAZA DE SAN JUAN DE DIOS (CADIZ) More info
http://www.publico.es/espana/360544/solo-grite-mi-dolor-habian-matado-a-mi-familia
; http://www.elpais.com/articulo/ultima/Delirante/elpepuopi/20110208elpepiult_1/Tes
;
Subscribe to:
Posts (Atom)