本文整理汇总了Java中com.subgraph.orchid.data.Timestamp类的典型用法代码示例。如果您正苦于以下问题:Java Timestamp类的具体用法?Java Timestamp怎么用?Java Timestamp使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Timestamp类属于com.subgraph.orchid.data包,在下文中一共展示了Timestamp类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: parseTimestamp
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp parseTimestamp() {
String timeAndDate = getItem() + " " + getItem();
try {
return new Timestamp(dateFormat.parse(timeAndDate));
} catch (ParseException e) {
throw new TorParsingException("Could not parse timestamp value: "+ timeAndDate);
}
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:9,代码来源:DocumentFieldParserImpl.java
示例2: parseHistory
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
private BandwidthHistory parseHistory() {
final Timestamp ts = fieldParser.parseTimestamp();
final String nsec = fieldParser.parseString();
fieldParser.parseString();
final int interval = fieldParser.parseInteger(nsec.substring(1));
final BandwidthHistory history = new BandwidthHistory(ts, interval);
if(fieldParser.argumentsRemaining() == 0)
return history;
final String[] samples = fieldParser.parseString().split(",");
for(String s: samples)
history.addSample(fieldParser.parseInteger(s));
return history;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:14,代码来源:RouterDescriptorParser.java
示例3: getKeyPublishedTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getKeyPublishedTime() {
return keyPublished;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:KeyCertificateImpl.java
示例4: getKeyExpiryTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getKeyExpiryTime() {
return keyExpires;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:KeyCertificateImpl.java
示例5: getPublicationTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getPublicationTime() {
return null;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:DirectoryAuthorityStatus.java
示例6: getMilliseconds
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
private long getMilliseconds(Timestamp ts) {
return ts.getDate().getTime();
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:DirectoryDownloadTask.java
示例7: getPublicationTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getPublicationTime() {
return publicationTime;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:RouterStatusImpl.java
示例8: getValidAfterTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getValidAfterTime() {
return validAfter;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:ConsensusDocumentImpl.java
示例9: getFreshUntilTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getFreshUntilTime() {
return freshUntil;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:ConsensusDocumentImpl.java
示例10: getValidUntilTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getValidUntilTime() {
return validUntil;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:ConsensusDocumentImpl.java
示例11: getPublishedTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
public Timestamp getPublishedTime() {
return published;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:RouterDescriptorImpl.java
示例12: setPublicationTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
void setPublicationTime(Timestamp ts) {
this.publicationTime = ts;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:HSDescriptor.java
示例13: getPublicationTime
import com.subgraph.orchid.data.Timestamp; //导入依赖的package包/类
Timestamp getPublicationTime() {
return publicationTime;
}
开发者ID:HashEngineering,项目名称:namecoinj,代码行数:4,代码来源:HSDescriptor.java
注:本文中的com.subgraph.orchid.data.Timestamp类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论