---
title: "Discussion on \"Abstract current time using function in C#\" | Hashnode"
description: "Discussion on \"Abstract current time using function in C#\". I've seen many ways to deal with date and time. Hiding it behind an interface, a static class with a single property, ambient context, you name it. I never liked any of them.\nThen the enlightenment came. In one of the projects, I've seen a function u..."
url: "https://hashnode.com/posts/abstract-current-time-using-function-in-c/6070a8bf1494367be6d2917f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Abstract current time using function in C#](https://blog.ciechowski.net/abstract-current-time-using-function-in-c?utm_source=hashnode&utm_medium=feed)

I've seen many ways to deal with date and time. Hiding it behind an interface, a static class with a single property, ambient context, you name it. I never liked any of them. Then the enlightenment came. In one of the projects, I've seen a function u...

Apr 9, 2021 · 2 min read · blog.ciechowski.net  
Read the article

-   [#csharp](https://hashnode.com/tag/csharp)
-   [#functional-programming](https://hashnode.com/tag/functional-programming)

## Written by

[Kuba Ciechowski](https://hashnode.com/@kciechowski)

@kciechowski · Gdańsk, Poland

  
[View profile](https://hashnode.com/@kciechowski)

soft skilled developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
