Вопрос по postgresql, java – Как использовать Joda-Time с java.sql.Timestamp

61

Error: User Rate Limit ExceededError: User Rate Limit Exceeded

INSERT INTO mst(time) VALUES (?);

Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded
Error: User Rate Limit ExceededError: User Rate Limit Exceeded Error: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Ваш Ответ

2   ответа
86

DateTime dateTime = new DateTime();
Timestamp timeStamp = new Timestamp(dateTime.getMillis());
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceedednew DateTime(timeStamp.getTime()).
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
9

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

public DateTime(Object instant);
public DateTime(Object instant, DateTimeZone zone);

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

new DateTime(resultSet.getTimestamp(1));

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

LocalDateTime dt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss")
    .parseLocalDateTime(resultSet.getString(1));

Error: User Rate Limit Exceeded

DateTime dt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss")
    .parseDateTime(resultSet.getString(1));

Error: User Rate Limit Exceeded

DateTime dt = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss Z")
    .parseDateTime(resultSet.getString(1));

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceededtutelman.com/golf/measure/precision.php
Error: User Rate Limit ExceededJSR 310: Date and Time APIError: User Rate Limit ExceededThese classes use nanosecond precision. The classes have sufficient accuracy to represent any nanosecond instant within the current age of the universe.
Error: User Rate Limit ExceededJoda-TimeError: User Rate Limit Exceededmaintenance modeError: User Rate Limit Exceededjava.timeError: User Rate Limit Exceeded
Error: User Rate Limit ExceededIf you're using TIMESTAMP WITH TIME ZONE in your database then you can't use java.sql.TimestampError: User Rate Limit ExceededTIMESTAMP WITH TIME ZONEError: User Rate Limit ExceededTIMESTAMP WITH TIME ZONEError: User Rate Limit Exceededjava.sql.TimestampError: User Rate Limit Exceededorg.joda.time.DateTimeError: User Rate Limit Exceedednow()Error: User Rate Limit Exceeded

Похожие вопросы