Subversion Repository Public Repository

litesoft

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package org.litesoft.core.typeutils;

import java.sql.*;
import java.text.*;

public class Timestamps
{
    public static Timestamp now()
    {
        return new Timestamp( System.currentTimeMillis() );
    }

    public static String nowToYMDHMS4FileName()
    {
        return new SimpleDateFormat( "yyyyMMdd-HHmmss" ).format( now() );
    }

    public static String nowToYMDHMS()
    {
        return new SimpleDateFormat( "yyyy/MM/dd HH:mm:ss" ).format( now() );
    }
}

Commits for litesoft/trunk/Java/core/Anywhere/src/org/litesoft/core/typeutils/Timestamps.java

Diff revisions: vs.
Revision Author Commited Message
858 Diff Diff GeorgeS picture GeorgeS Sun 04 Nov, 2012 18:40:40 +0000
851 Diff Diff GeorgeS picture GeorgeS Mon 08 Oct, 2012 00:05:32 +0000

Breaking the code as Temporal changes are implemented...

819 GeorgeS picture GeorgeS Sat 18 Aug, 2012 18:09:40 +0000