You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by lg...@apache.org on 2017/04/26 17:41:21 UTC

mina-sshd git commit: Added reference to SCP timestamp format in ScpTimestamp javadoc

Repository: mina-sshd
Updated Branches:
  refs/heads/master 87b87f7da -> 4c3215235


Added reference to SCP timestamp format in ScpTimestamp javadoc


Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/4c321523
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/4c321523
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/4c321523

Branch: refs/heads/master
Commit: 4c321523505d8041733cf493f74d1171aa189b15
Parents: 87b87f7
Author: Lyor Goldstein <ly...@gmail.com>
Authored: Wed Apr 26 20:41:17 2017 +0300
Committer: Lyor Goldstein <ly...@gmail.com>
Committed: Wed Apr 26 20:41:17 2017 +0300

----------------------------------------------------------------------
 .../java/org/apache/sshd/common/scp/ScpTimestamp.java     | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/4c321523/sshd-core/src/main/java/org/apache/sshd/common/scp/ScpTimestamp.java
----------------------------------------------------------------------
diff --git a/sshd-core/src/main/java/org/apache/sshd/common/scp/ScpTimestamp.java b/sshd-core/src/main/java/org/apache/sshd/common/scp/ScpTimestamp.java
index 9818846..e804de9 100644
--- a/sshd-core/src/main/java/org/apache/sshd/common/scp/ScpTimestamp.java
+++ b/sshd-core/src/main/java/org/apache/sshd/common/scp/ScpTimestamp.java
@@ -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 {
@@ -47,17 +48,18 @@ public class ScpTimestamp {
     @Override
     public String toString() {
         return "modified=" + new Date(lastModifiedTime)
-                + ";accessed=" + new Date(lastAccessTime);
+            + ";accessed=" + new Date(lastAccessTime);
     }
 
     /**
      * @param line The time specification - format:
-     *             {@code T<mtime-sec> <mtime-micros> <atime-sec> <atime-micros>}
-     *             where specified times are since UTC
+     * {@code T<mtime-sec> <mtime-micros> <atime-sec> <atime-micros>}
+     * 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'.
+     * 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), ' ');