Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for 1970 (0.03 sec)

  1. src/main/java/jcifs/smb1/util/Encdec.java

        /**
         * Milliseconds between January 1, 1970 and January 1, 1601 (Windows epoch).
         */
        public static final long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
    
        /**
         * Seconds between January 1, 1904 and January 1, 1970 (Mac epoch).
         */
        public static final long SEC_BETWEEEN_1904_AND_1970 = 2082844800L;
    
        /**
         * Time encoding type: 1970 epoch, 32-bit seconds, big-endian.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            // Verify time was read correctly (accounting for UTime conversion)
            long readTime = (Long) getFieldValue(response, "lastWriteTime");
            // UTime is seconds since 1970, so we need to compare at second precision
            assertEquals(lastWriteTime / 1000, readTime / 1000);
        }
    
        @Test
        void testReadParameterWordsWireFormatWithZeroWordCount() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  3. cmd/erasure-healing-common.go

    		return etag
    	}
    	return ""
    }
    
    // Beginning of unix time is treated as sentinel value here.
    var (
    	timeSentinel     = time.Unix(0, 0).UTC()
    	timeSentinel1970 = time.Unix(0, 1).UTC() // 1970 used for special cases when xlmeta.version == 0
    )
    
    // Boot modTimes up to disk count, setting the value to time sentinel.
    func bootModtimes(diskCount int) []time.Time {
    	modTimes := make([]time.Time, diskCount)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        int SIGNATURE_OFFSET = 14;
        /** TID offset in SMB header */
        int TID_OFFSET = 24;
        /** SMB header length */
        int HEADER_LENGTH = 32;
    
        /** Milliseconds between 1970 and 1601 */
        long MILLISECONDS_BETWEEN_1970_AND_1601 = 11644473600000L;
        /** Default timezone */
        TimeZone TZ = TimeZone.getDefault();
    
        /** Whether to use batching */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/PacLogonInfoTest.java

            Date date = pacStream.readFiletime();
            assertNotNull(date);
            // The date should be around 1970 (allowing for some conversion differences)
            assertTrue(date.getYear() + 1900 >= 1969 && date.getYear() + 1900 <= 1971);
        }
    
        @Test
        @DisplayName("Test invalid FILETIME handling")
        void testInvalidFiletime() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/fscc/FileBasicInfoTest.java

    import jcifs.internal.SMBProtocolDecodingException;
    
    /**
     * Test class for FileBasicInfo
     */
    class FileBasicInfoTest {
    
        private FileBasicInfo fileBasicInfo;
        // Use realistic time values in milliseconds since 1970 (Unix epoch)
        private static final long TEST_CREATE_TIME = System.currentTimeMillis() - 86400000L; // 1 day ago
        private static final long TEST_LAST_ACCESS_TIME = System.currentTimeMillis() - 43200000L; // 12 hours ago
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

    @ExtendWith(MockitoExtension.class)
    class BasicFileInformationTest {
    
        @Mock
        private BasicFileInformation mockBasicFileInfo;
    
        private FileBasicInfo fileBasicInfo;
    
        // Use Unix timestamps (milliseconds since 1970) for test values
        private static final long TEST_CREATE_TIME = System.currentTimeMillis() - 10000;
        private static final long TEST_LAST_ACCESS_TIME = System.currentTimeMillis() - 8000;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbResource.java

         * @see #setLastModified
         *
         * @param createTime
         *            the create time as milliseconds since Jan 1, 1970
         * @param lastModified
         *            the last modified time as milliseconds since Jan 1, 1970
         * @param lastAccess
         *            the last access time as milliseconds since Jan 1, 1970
         * @throws CIFSException if an error occurs modifying the resource
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 28K bytes
    - Viewed (1)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt

          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=Thu, 01 Jan 1970 00:00:0 GMT")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=00:00:00 Thu, 01 Jan 1970 GMT")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=00:00:00 1970 Jan 01")!!.expiresAt)
          .isEqualTo(0L)
        assertThat(parse(url, "a=b; Expires=00:00:00 1970 Jan 1")!!.expiresAt)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                byte[] buffer = new byte[60];
                SMBUtil.writeInt2(60, buffer, 0);
    
                // SMB times are in 100-nanosecond intervals since 1601
                // Java times are in milliseconds since 1970
                long currentJavaTime = System.currentTimeMillis();
                long smbTime = currentJavaTime * 10000L + 116444736000000000L;
    
                SMBUtil.writeInt8(smbTime, buffer, 8);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
Back to top