Thanks, Rich, but I'm still not getting it to work if I use "rename":
table Date, userid, username, role, page, account |
rename Date as "Pacific Time", page as Path, userid as "Associate's ID", username as "Associate's Name", role as "Access Level", account as "Account Number" |
fieldformat "Pacific Time" = strftime("Pacific Time", "%F %T")
gives me a column of "Pacific Time" that is blank, whereas:
table Date, userid, username, role, page, account |
fieldformat Date = strftime(Date, "%F %T") |
rename Date as "Pacific Time", page as Path, userid as "Associate's ID", username as "Associate's Name", role as "Access Level", account as "Account Number"
gives me a column named "Pacific Time" as an epoch timestamp (expected, given what you have said, though I had understood "rename" to re-name the field and drag with it all of the attributes already tied to that field), and:
table Date, userid, username, role, page, account |
fieldformat Date = strftime(Date, "%F %T") |
rename page as Path, userid as "Associate's ID", username as "Associate's Name", role as "Access Level", account as "Account Number"
gives me a column named Date that is formatted the way I would like. What I do not understand is why the first option gives me a blank column. It is as if, once "rename" has been run on the field, fieldformat will no longer work on that same field. Is it because "rename" changes it from an epoch timestamp to a string (or something else)?
... View more