now() — langchain Function Reference
Architecture documentation for the now() function in utils.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a7fdd325_2e44_73a8_fe05_2212f3ba1948["now()"] 8a3545bb_7e94_a2be_a861_3d58e34c213a["MockDateTime"] a7fdd325_2e44_73a8_fe05_2212f3ba1948 -->|defined in| 8a3545bb_7e94_a2be_a861_3d58e34c213a 134db6ff_44dc_a037_5d16_5637e58f9750["mock_now()"] 134db6ff_44dc_a037_5d16_5637e58f9750 -->|calls| a7fdd325_2e44_73a8_fe05_2212f3ba1948 style a7fdd325_2e44_73a8_fe05_2212f3ba1948 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/utils/utils.py lines 95–106
def now(cls, tz: datetime.tzinfo | None = None) -> "MockDateTime":
# Create a copy of dt_value.
return MockDateTime(
dt_value.year,
dt_value.month,
dt_value.day,
dt_value.hour,
dt_value.minute,
dt_value.second,
dt_value.microsecond,
dt_value.tzinfo,
)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does now() do?
now() is a function in the langchain codebase, defined in libs/core/langchain_core/utils/utils.py.
Where is now() defined?
now() is defined in libs/core/langchain_core/utils/utils.py at line 95.
What calls now()?
now() is called by 1 function(s): mock_now.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free