= #JxnPortable\docs\application_examples\TimeStamp.jxn

src = @JxnRealArrayTextFileDataSource "data_with_timestamp.html"
 = "data_with_timestamp.html", 0, ";\t", " " (JxnRealArrayTextFileDataSource)
format src.readLines 6
!
t = src.get( 1, @SimpleDateFormat("yyyyMMdd HHmm") )
 = {21.03.2005 00:00:00 MEZ, 21.03.2005 00:15:00 MEZ, ... 28.03.2005 00:00:00 MESZ "Date     Time	Temperature_[C]	Radiation_[W/m2]"} (JxnRealArrayAlgebra)
! As ' ' is a delimiter, Date and Time count as two columns and tmp is read from column 3:
tmp = src[3]
 = {-1.0, -1.3, ... 9.9 "Temperature_[C]"} (JxnRealArrayAlgebra)
rad = src[4]
 = {0.0, 0.0, ... 0.0 "Radiation_[W/m2]"} (JxnRealArrayAlgebra)
plot( t, rad/25, tmp ).setTitle( "red: Radiation/25 [W/m²], blue: Temperature [°C]" )
 = null
!
! now read the same file after changing the default date time format and the delimiters:
src.setDateTimeFormat( "yyyyMMdd HHmm" ).setDelimiters( null, "" )  ! null => no change 
 = "data_with_timestamp.html", 0, ";\t", "" (JxnRealArrayTextFileDataSource)
t = src[-1]
 = {21.03.2005 00:00:00 MEZ, 21.03.2005 00:15:00 MEZ, ... 28.03.2005 00:00:00 MESZ "Date     Time	Temperature_[C]	Radiation_[W/m2]"} (JxnRealArrayAlgebra)
tmp = src[2]
 = {-1.0, -1.3, ... 9.9 "Temperature_[C]"} (JxnRealArrayAlgebra)
rad = src[3]
 = {0.0, 0.0, ... 0.0 "Radiation_[W/m2]"} (JxnRealArrayAlgebra)
plot( t, rad/25, tmp ).setTitle( "red: Radiation/25 [W/m²], blue: Temperature [°C]" )
 = null