com.lambdaworks.redis.output.DateOutput Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of redisson Show documentation
Show all versions of redisson Show documentation
Redis Java client with features of In-Memory Data Grid
// Copyright (C) 2011 - Will Glozer. All rights reserved.
package com.lambdaworks.redis.output;
import com.lambdaworks.redis.codec.RedisCodec;
import com.lambdaworks.redis.protocol.CommandOutput;
import java.util.Date;
/**
* Date output with no milliseconds.
*
* @author Will Glozer
*/
public class DateOutput extends CommandOutput {
public DateOutput(RedisCodec codec) {
super(codec, null);
}
@Override
public void set(long time) {
output = new Date(time * 1000);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy