Added reference to SCP timestamp format in ScpTimestamp javadoc
@@ -25,6 +25,7 @@ import java.util.concurrent.TimeUnit;
import org.apache.sshd.common.util.GenericUtils;
/**
+ * Represents an SCP timestamp definition
* @author <a href="mailto:dev@mina.apache.org">Apache MINA SSHD Project</a>
*/
public class ScpTimestamp {
@@ -53,11 +54,12 @@ public class ScpTimestamp {
/**
* @param line The time specification - format:
* {@code T<mtime-sec> <mtime-micros> <atime-sec> <atime-micros>}
- * where specified times are since UTC
+ * where specified times are in seconds since UTC
* @return The {@link ScpTimestamp} value with the timestamps converted to
* <U>milliseconds</U>
* @throws NumberFormatException if bad numerical values - <B>Note:</B>
* does not check if 1st character is 'T'.
+ * @see <A HREF="https://blogs.oracle.com/janp/entry/how_the_scp_protocol_works">How the SCP protocol works</A>
*/
public static ScpTimestamp parseTime(String line) throws NumberFormatException {
String[] numbers = GenericUtils.split(line.substring(1), ' ');
