Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what package is this from?

 
John Davis
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following in my program


This gets me a printable date time string.

However, I am wondering about the class

DateTimeString

I don't see it in Java JDK 1.4.2 documentation. Where is this class documented?
 
Campbell Ritchie
Sheriff
Pie
Posts: 49447
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not in JDK 1.5 either. It must be somewhere in your app.
 
John Davis
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't have this class in my application's package. I don't see it in joda.time and just to make sure, I commented out the import for joda.time.*; and recompiled and I didn't get a compilation error. This is really mystifying.
my imports:

import com.ibm.mq.*;
import com.ibm.mq.pcf.*;
import javax.swing.*;
import java.awt.*;
import javax.mail.*;
import javax.mail.internet.*;
import org.joda.time.*;
import java.util.*;
 
Campbell Ritchie
Sheriff
Pie
Posts: 49447
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can't help any more, I am afraid. You will have to ask around at work. Or try a search engine, eg Google.
 
Yuriy Zilbergleyt
Ranch Hand
Posts: 429
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could always install an IDE like Eclipse. Makes these little issues SO much easier to deal with.
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yet another example of why importing using * just shouldn't be done.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic