|  | @@ -285,6 +285,9 @@ object makedata_recsys_81_originData_20250217 {
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +            // time
 | 
	
		
			
				|  |  | +            val ts = record.getString("ts")
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |              // category
 | 
	
		
			
				|  |  |              if (rankVideo.nonEmpty) {
 | 
	
		
			
				|  |  |                val attrList = List(FeatureUtils.cate1Attr, FeatureUtils.cate2Attr, FeatureUtils.festive1Attr)
 | 
	
	
		
			
				|  | @@ -298,8 +301,16 @@ object makedata_recsys_81_originData_20250217 {
 | 
	
		
			
				|  |  |                }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            // time
 | 
	
		
			
				|  |  | -            val ts = record.getString("ts")
 | 
	
		
			
				|  |  | +            // createTime
 | 
	
		
			
				|  |  | +            var createTime = 1D
 | 
	
		
			
				|  |  | +            if (null != ts && ts.nonEmpty && rankVideo.containsKey("gmt_create_timestamp")) {
 | 
	
		
			
				|  |  | +              val currentMs = ts.toLong * 1000L
 | 
	
		
			
				|  |  | +              val createMs = rankVideo.getString("gmt_create_timestamp").toLong
 | 
	
		
			
				|  |  | +              createTime = FeatureUtils.getCreateTime(currentMs, createMs)
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            featureMap.put("createTime", createTime)
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            // week & hour
 | 
	
		
			
				|  |  |              val calendar = tsToCalendar(ts)
 | 
	
		
			
				|  |  |              if (null != calendar) {
 | 
	
		
			
				|  |  |                val week = calendar.get(Calendar.DAY_OF_WEEK)
 |