diff options
Diffstat (limited to 'presentations/EclipseCon Europe 2015/05 Example Scripts/01 Current Time.js')
-rw-r--r-- | presentations/EclipseCon Europe 2015/05 Example Scripts/01 Current Time.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/presentations/EclipseCon Europe 2015/05 Example Scripts/01 Current Time.js b/presentations/EclipseCon Europe 2015/05 Example Scripts/01 Current Time.js new file mode 100644 index 0000000..763c0f2 --- /dev/null +++ b/presentations/EclipseCon Europe 2015/05 Example Scripts/01 Current Time.js @@ -0,0 +1,13 @@ +/******************************************************************************* + * Copyright (c) 2015 Christian Pontesegger and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: Christian Pontesegger - initial API and implementation + * description: Hello World + *******************************************************************************/ + +var formatter = java.text.SimpleDateFormat("yyyy-MM-dd, HH:mm:ss") +print(formatter.format(java.lang.System.currentTimeMillis())); |