binhistory.BinLogEntry

class binhistory.BinLogEntry(timestamp: ~datetime.datetime = <factory>, computer: str = 'build-27526146-', user: str = 'docs')

Bases: object

An entry in a bin log

__init__(timestamp: ~datetime.datetime = <factory>, computer: str = 'build-27526146-', user: str = 'docs') None

Methods

__init__([timestamp, computer, user])

copy_with(**fields)

Creates a copy of this BinLogEntry, with optional changes to specified fields

from_string(log_entry[, max_year])

Return the log entry from a given log entry string

to_string()

Format the bin log entry as a string

Attributes

computer

Hostname of the system which accessed the bin

user

User profile which accessed the bin

timestamp

Timestamp of last access

timestamp: datetime

Timestamp of last access

computer: str = 'build-27526146-'

Hostname of the system which accessed the bin

user: str = 'docs'

User profile which accessed the bin

copy_with(**fields)

Creates a copy of this BinLogEntry, with optional changes to specified fields

to_string() str

Format the bin log entry as a string

classmethod from_string(log_entry: str, max_year: int | None = None) BinLogEntry

Return the log entry from a given log entry string