mirror of
				https://github.com/lacerta-doc/Lacerta.git
				synced 2025-11-04 00:40:49 +00:00 
			
		
		
		
	メソッド追加
This commit is contained in:
		
							parent
							
								
									c875ba5e54
								
							
						
					
					
						commit
						8c21d0db04
					
				@ -149,4 +149,17 @@ public class DocumentMeta {
 | 
				
			|||||||
        this.tags = tags;
 | 
					        this.tags = tags;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * updatedAtを現在時刻に設定する
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public void setUpdatedAtNow() {
 | 
				
			||||||
 | 
					        this.updatedAt = new Date();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * createdAtを現在時刻に設定する
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public void setCreatedAtNow() {
 | 
				
			||||||
 | 
					        this.createdAt = new Date();
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user