Skip to content

Commit

Permalink
Fixed getBuildTimeStampSeconds()
Browse files Browse the repository at this point in the history
  • Loading branch information
deepnight committed Aug 31, 2023
1 parent e683c42 commit 80295c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dn/MacroTools.hx
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ class MacroTools {
}

/**
Return the compilation timestamp in seconds as standard Date string format
Return the compilation timestamp in seconds
**/
public static macro function getBuildTimeStampSeconds() {
return {
pos : Context.currentPos(),
expr : EConst(CFloat( Std.string( haxe.Timer.stamp() ) )),
expr : EConst(CFloat( Std.string( Date.now().getTime()/1000 ) )),
}
}

Expand Down

0 comments on commit 80295c3

Please sign in to comment.