New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Get the current time


Posted Date:     Total Responses: 0    Posted By: vignesh   Member Level: Silver   Points/Cash: 1   


GetTheCurrentTime

package com.ack.j2se.date;

import java.util.Calendar;
import java.util.Date;

public class GetTheCurrentTime {
public static void main( String[] args ) {
// one way
long currentTimeInMillis = System.currentTimeMillis();
Date today = new Date( currentTimeInMillis );
System.out.println( today );

// another way
Calendar cal = Calendar.getInstance();
today = cal.getTime();
System.out.println( today );
}
}



Project Feedbacks


No feedbacks found. Be the first to respond and make money from revenue sharing program.

Post Feedback
You must Sign In to post a feedback.
Next Project: C program that uses a function to sort an array of integers
Previous Project: The roots of a quadratic equation of the form ax2 + bx + c = 0

Return to Project Index

Post New Project


Related Projects



Advertise Here





Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

ISC Technologies.
2006 - 2009 All Rights Reserved.