{"size": 368, "ext": "sjs", "max_stars_repo_path": "ml-development-tools/src/test/ml-modules/root/dbfunctiondef/positive/sessions/getSessionField.sjs", "max_stars_repo_name": "andreas-felix/java-client-api", "max_stars_repo_stars_event_min_datetime": "2015-05-06T19:30:30.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-30T20:50:35.000Z", "max_issues_repo_path": "ml-development-tools/src/test/ml-modules/root/dbfunctiondef/positive/sessions/getSessionField.sjs", "max_issues_repo_name": "andreas-felix/java-client-api", "max_issues_repo_issues_event_min_datetime": "2015-01-02T05:33:02.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-15T15:48:17.000Z", "max_forks_repo_path": "ml-development-tools/src/test/ml-modules/root/dbfunctiondef/positive/sessions/getSessionField.sjs", "max_forks_repo_name": "andreas-felix/java-client-api", "max_forks_repo_forks_event_min_datetime": "2015-05-07T17:37:52.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-14T07:10:32.000Z"}
{"max_stars_count": 46, "max_issues_count": 1075, "max_forks_count": 77, "avg_line_length": 28.3076923077, "max_line_length": 70, "alphanum_fraction": 0.7391304348}
'use strict';
var fieldName;
var fieldValue;

const timestamp = fn.head(xdmp.getSessionField(xs.string(fieldName)));

// console.log(Object.prototype.toString.call(fieldValue));
// console.log(Object.prototype.toString.call(timestamp));
// console.log('get '+fieldName+': '+timestamp+'='+fieldValue);

const result = (String(timestamp) == String(fieldValue));
result;
