TAILIEUCHUNG - o'reilly database programming with JDBC and Java 2nd edition phần 10

Mô tả xây dựng Điều này tạo ra một đối tượng Thời gian mới. Nguyên mẫu đầu tiên xây dựng một Thời gian giờ, phút, và giây quy định. Thứ hai, xây dựng dựa trên số giây kể từ 1 tháng . | JDBC and Java 2nd edition static public Time valueOf String s public Time int hour int minute int second public Time long time public int getDate public int getDay public int getMonth public int getYear public int setDate int i public int setMonth int i public void setTime long time public void setYear int i public String toString Object Constructors Time public Time int hour int minute intsecond public Time long time Description This constructor creates a new Time object. The first prototype constructs a Time for the hour minute and seconds specified. The second constructs one based on the number of seconds since January 1 1970 12 00 00 GMT. Object Methods getDate setDate getDay getMonth setMonth getYear and setYear public int getDate public int getDay public int getMonth public int getYear public int setDate int i public int setMonth int i public void setYear int i Description These attributes represent the individual segments of a Time object. setTime public void setTime long time Description This method sets the Time object to the specified time as the number of seconds since January 1 1970 12 00 00 gMt. toString public String toString Description This method formats the Time into a String in the form of hh mm ss. page 224 JDBC and Java 2nd edition valueOf static public Timestamp valueOf String s Description This method creates a new Time based on a String in the form of hh mm ss. Timestamp Synopsis Class Name Superclass Immediate Subclasses None Interfaces Implemented None Availability JDK Description This class serves as a SQL representation of the Java Date class specifically designed to serve as a SQL TIMESTAMP. It also provides the ability to hold nanoseconds as required by SQL TIMESTAMP values. You should keep in mind that this class uses the version of hashcode . This means that two timestamps that differ only by nanoseconds will have identical hashcode return values. Class Summary public class .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.