A simple AWS Lambda function that returns the current UK time with timezone information.
- Returns current UK time in GMT/BST
- Automatically detects daylight saving time
- Cross-platform timezone handling (Windows/Linux)
- JSON API response with CORS headers
{
"currentTime": "2024-01-15 14:30:45",
"timeZone": "GMT (Greenwich Mean Time)",
"isDaylightSaving": false,
"message": "Current UK time retrieved successfully"
}- .NET 8.0 SDK
- AWS CLI configured
- Amazon.Lambda.Tools
dotnet build
dotnet testcd src/UKTimeAPI
dotnet lambda deploy-function├── src/UKTimeAPI/ # Lambda function source
│ ├── Function.cs # Main handler
│ └── Models/ # Response models
├── test/UKTimeAPI.Tests/ # Unit tests
└── README.md
MIT