Export (0) Print
Expand All

Calendar.getTime Method

Visual Studio 2005

Gets a Date representing the time of a Calendar object.

Package: java.util

Assembly: vjslib (in vjslib.dll)


public final java.util.Date getTime();

A Date representing the time of a Calendar object.

// cal-getTime1.jsl
// Calendar.getTime example

import java.util.*;

public class MyClass
{
    public static void main(String[] args)
    {
        // Create an object:
        Calendar cal = new GregorianCalendar();

        // Display the time:
        System.out.println(cal.getTime());
    }
}

/*
Output:
Fri Sep 10 14:12:18 PDT 2004
*/

Community Additions

ADD
Show:
© 2014 Microsoft