OpenLink Software

Usage stats on Segments: Time and Date Script

 Permalink

an Entity in Data Space: 134.155.108.49:8890

Below is a simple script to get several formats of the time or date in DesktopX. Create a simple text object and insert the script. Sub Object_OnScriptEnter object.Settimer 1, 1000'-Set a 1 second timer End Sub '-Check the time every second Sub Object_Ontimer1 dateNtime= Now()'-Current date and time date1= FormatDateTime(now,1)'--Full date date2= FormatDateTime(now,2)'--Short date date3= Day(date)'--Current day of the month day1= WeekdayName(Weekday(Date), False)'--Full weekday day2= WeekdayName(Weekday(Date),True)'--Abbreviated weekday day3= Weekday(now)'--Number representing day of week currentmonth1= MonthName(Month(now),False)'--Full month currentmonth2= MonthName(Month(now),True)'--Abbreviated month currentmonth3= Month(now)'--Number representing month of year currentyear= Year(now

Graph IRICount
http://dbkwik.webdatacommons.org7
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] This material is Open Knowledge Creative Commons License Valid XHTML + RDFa
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License.
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Copyright © 2009-2012 OpenLink Software