🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.java
1 messages
1 total messages Started by Piotr Walesiak Wed, 27 Aug 1997 08:10
Linux + JDK 1.1.3 + Date.toString() ????
#898
Author: Piotr Walesiak
Date: Wed, 27 Aug 1997 08:10
35 lines
1438 bytes
Mam nastęujący programik w Javie:

import java.util.*;

public class Test {
  static public void main(String args[]){
    System.out.println(
    	"Dlaczego mimo, ze time zone jest: "
    	+TimeZone.getDefault().getID());
    System.out.println(
    	"To new Date().toString() jest: "
    	+ new Date().toString()
    );
  }
}

Kompiluję: javac Test.java
uruchamiam: java Test
i dostaję:

Dlaczego mimo, ze time zone jest: MET
To new Date().toString() jest: Wed Aug 27 11:29:31 GMT+03:30 1997

Co to w ogóle jest GMT+3:30? 
Dlaczego nie jest MET lub GMT+1:00 (czy tam 2:00)?

Czy ktoś spotkał się z takim problemem? Czy u kogoś ten programik działa
jak należy?

-- 
+--------------------------+
| Piotr Walesiak           |
| P.Walesiak@supermedia.pl |
| pwalesia@ia.pw.edu.pl    |
+--------------------------+
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads